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

[UNIKRAFT PATCH RFCv2 26/27] plat/virtio_9p: Fix max virtqueue number 1024 on arm64



On arm64, the virtqueue max number provided by qemu is 1024.
Otherwise, it reports:
Expected 128 descriptors, found 1024 (virtqueue

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/drivers/virtio/virtio_9p.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plat/drivers/virtio/virtio_9p.c b/plat/drivers/virtio/virtio_9p.c
index fe0d69a..b29b1cb 100644
--- a/plat/drivers/virtio/virtio_9p.c
+++ b/plat/drivers/virtio/virtio_9p.c
@@ -44,7 +44,7 @@
 #include <uk/plat/spinlock.h>
 
 #define DRIVER_NAME    "virtio-9p"
-#define NUM_SEGMENTS   128 /** The number of virtqueue descriptors. */
+#define NUM_SEGMENTS   1024 /** The number of virtqueue descriptors. */
 static struct uk_alloc *a;
 
 /* List of initialized virtio 9p devices. */
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.