[SeaBIOS] [PATCH seabios 3/3] kvmtool: support larger virtio queues

Gerd Hoffmann kraxel at redhat.com
Thu Nov 2 16:50:31 CET 2017


Queues have 256 entries on kvmtool, support that.  Needs more memory for
virtqueues now.  But with the move to 32bit drivers for virtio this
should not be much of an issue any more.

Known problems (probably kvmtool bugs):
 * Must bump to 260 entries to make things actually work,
   otherwise kvmtool segfaults.  Oops.
 * Linux kernel doesn't find virtio-blk devices after seabios
   initialized them.  virtio device reset not working properly?

Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 src/hw/virtio-ring.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hw/virtio-ring.h b/src/hw/virtio-ring.h
index 8604a01140..cb8da89cab 100644
--- a/src/hw/virtio-ring.h
+++ b/src/hw/virtio-ring.h
@@ -20,7 +20,7 @@
 #define VIRTIO_F_VERSION_1              32
 #define VIRTIO_F_IOMMU_PLATFORM         33
 
-#define MAX_QUEUE_NUM      (128)
+#define MAX_QUEUE_NUM      (260)
 
 #define VRING_DESC_F_NEXT  1
 #define VRING_DESC_F_WRITE 2
-- 
2.9.3




More information about the SeaBIOS mailing list