Commit-ID: a22570c018b4820ce946372457f2dba7397db569 Gitweb: http://git.kernel.org/tip/a22570c018b4820ce946372457f2dba7397db569 Author: Asias He <asias.hejun@xxxxxxxxx> AuthorDate: Sat, 7 Apr 2012 19:56:38 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Mon, 9 Apr 2012 11:34:47 +0300 kvm tools: Increase virtio-blk and virtio-net queue size Increase virtio-blk and virtio-net queue size to 256. This makes virtio-mmio work. Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/virtio/blk.c | 2 +- tools/kvm/virtio/net.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/virtio/blk.c b/tools/kvm/virtio/blk.c index f3cb6cf..407f995 100644 --- a/tools/kvm/virtio/blk.c +++ b/tools/kvm/virtio/blk.c @@ -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 { diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index d523f61..11581ce 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -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 -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html