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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux