From a22570c018b4820ce946372457f2dba7397db569 Mon Sep 17 00:00:00 2001 From: Asias He Date: Sat, 7 Apr 2012 19:56:38 +0800 Subject: [PATCH] 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 Signed-off-by: Pekka Enberg --- 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 f3cb6cf10876..407f995849d7 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 d523f61ba4e4..11581cef7efe 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -26,7 +26,7 @@ #include #include -#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 -- 2.39.5