mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-blk: enable multiple vectors when using multiple I/O queues
Currently virtio-pci driver hardcoded 2 vectors for virtio-blk device, for multiple I/O queues scenario, all the I/O queues will share one interrupt vector, while here, enable multiple vectors according to the number of I/O queues. Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
9d6b9db19c
commit
0ebf9a7488
2 changed files with 20 additions and 2 deletions
|
@ -6,6 +6,14 @@
|
|||
.driver = "hpet",\
|
||||
.property = "hpet-offset-saved",\
|
||||
.value = "false",\
|
||||
},{\
|
||||
.driver = "virtio-blk-pci",\
|
||||
.property = "vectors",\
|
||||
.value = "2",\
|
||||
},{\
|
||||
.driver = "vhost-user-blk-pci",\
|
||||
.property = "vectors",\
|
||||
.value = "2",\
|
||||
},
|
||||
|
||||
#define HW_COMPAT_2_10 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue