]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Increase virtio-blk and virtio-net queue size
authorAsias He <asias.hejun@gmail.com>
Sat, 7 Apr 2012 11:56:38 +0000 (19:56 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 Apr 2012 08:34:47 +0000 (11:34 +0300)
Increase virtio-blk and virtio-net queue size to 256.
This makes virtio-mmio work.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/blk.c
tools/kvm/virtio/net.c

index f3cb6cf1087603127277f43ef6e3d2e6f7a68c1d..407f995849d7dacb839b036d4caff4f1364a964a 100644 (file)
@@ -25,7 +25,7 @@
  * the header and status consume too entries
  */
 #define DISK_SEG_MAX                   (VIRTIO_BLK_QUEUE_SIZE - 2)
-#define VIRTIO_BLK_QUEUE_SIZE          128
+#define VIRTIO_BLK_QUEUE_SIZE          256
 #define NUM_VIRT_QUEUES                        1
 
 struct blk_dev_req {
index d523f61ba4e4ae2fffa0cc57e7f93f4d53c6be77..11581cef7efee81dd8c7c5d4d91e2f0530812057 100644 (file)
@@ -26,7 +26,7 @@
 #include <sys/wait.h>
 #include <sys/eventfd.h>
 
-#define VIRTIO_NET_QUEUE_SIZE          128
+#define VIRTIO_NET_QUEUE_SIZE          256
 #define VIRTIO_NET_NUM_QUEUES          2
 #define VIRTIO_NET_RX_QUEUE            0
 #define VIRTIO_NET_TX_QUEUE            1