summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2015-05-29 14:15:32 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-05-31 16:50:10 +0200
commitb829c2a98f1f67308eb02fcddb52d8fa67775f18 (patch)
treef475b1c40e5fad4c8b931fdb647b4aa7a9ab4a08 /include
parent87b3bd1c858e6cacac4d403da9109ec3a04fe9d0 (diff)
downloadhqemu-b829c2a98f1f67308eb02fcddb52d8fa67775f18.zip
hqemu-b829c2a98f1f67308eb02fcddb52d8fa67775f18.tar.gz
virtio: increase the queue limit to 1024
Increase the queue limit to 1024. But virtio-ccw and s390-virtio won't support this, this is done through failing device_plugged() for those two transports if the number of virtqueues is greater than 64. Signed-off-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index 4411dca..45d6e5b 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -48,7 +48,7 @@ typedef struct VirtQueueElement
struct iovec out_sg[VIRTQUEUE_MAX_SIZE];
} VirtQueueElement;
-#define VIRTIO_QUEUE_MAX 64
+#define VIRTIO_QUEUE_MAX 1024
#define VIRTIO_NO_VECTOR 0xffff
OpenPOWER on IntegriCloud