virtio: increase the queue limit to 1024
authorJason Wang <jasowang@redhat.com>
Fri, 29 May 2015 06:15:32 +0000 (14:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 31 May 2015 14:50:10 +0000 (16:50 +0200)
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>
include/hw/virtio/virtio.h

index 4411dcafa2d2313961a16cc12cb0b639f0a88966..45d6e5b01e6931e156917f639c64eaf7018ca79b 100644 (file)
@@ -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