mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-27 00:35:59 +00:00
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@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user