[SeaBIOS] [PATCH 7/7] kvmtool: support larger virtio queues

Gerd Hoffmann kraxel at redhat.com
Tue Jul 7 08:38:46 CEST 2015


They have 256 entries on kvmtool, support that.  Need more memory for
virtqueues now.  But with the move to 32bit drivers this should not be
a big issue.

FIXME: Must bump to 260 to make things actually work.  There seems to be
some corruption otherwise and kvmtool complains about invalid requests.
Not yet debugged who is at fault here.

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 7df9004..3a143e0 100644
--- a/src/hw/virtio-ring.h
+++ b/src/hw/virtio-ring.h
@@ -28,7 +28,7 @@
 /* v1.0 compliant. */
 #define VIRTIO_F_VERSION_1              32
 
-#define MAX_QUEUE_NUM      (128)
+#define MAX_QUEUE_NUM      (260)
 
 #define VRING_DESC_F_NEXT  1
 #define VRING_DESC_F_WRITE 2
-- 
1.8.3.1




More information about the SeaBIOS mailing list