Revision 4704d9eba6d8017dc694c077ca4205ffd8becad8 authored by Mark Cave-Ayland on 16 May 2020, 13:01:31 UTC, committed by Mark Cave-Ayland on 16 May 2020, 13:42:22 UTC
QEMU commit c9b7d9ec21 "virtio: increase virtqueue size for virtio-scsi and
virtio-blk" increased the number of queue descriptors from 128 to 256 which
caused OpenBIOS to fail when booting from a virtio-blk device under
qemu-system-ppc due to a memory overflow.

Update the virtio-blk driver so that it uses a maximum of 128 descriptor
entries (the previous value) to fix the issue, and also ensure that any
further increases in virtqueue size will not cause the same failure.

Note that this commit also fixes the vring_area size calculation which was
incorrectly based upon the number of virtqueues, and not the number of
descriptor entries.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
1 parent 9b8c30c
History
File Mode Size
Documentation
arch
config
drivers
forth
fs
include
kernel
libc
libgcc
libopenbios
packages
utils
.gitignore -rw-r--r-- 31 bytes
COPYING -rw-r--r-- 17.6 KB
Makefile -rw-r--r-- 1.2 KB
Makefile.target -rw-r--r-- 2.8 KB
README -rw-r--r-- 4.7 KB
VERSION -rw-r--r-- 4 bytes
build.xml -rw-r--r-- 414 bytes

README

back to top