diff options
| author | Changpeng Liu <changpeng.liu@intel.com> | 2018-02-06 09:35:34 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2018-02-08 21:06:41 +0200 |
| commit | 0ebf9a748881fa85491501f0fa3ca5aec79b7afc (patch) | |
| tree | a07a0a912ce5a265aad3cf8c5c9384b597c41e8f /include/hw/compat.h | |
| parent | 9d6b9db19c4b99ce5a1ad75b490c01edd2c2b0cf (diff) | |
| download | focaccia-qemu-0ebf9a748881fa85491501f0fa3ca5aec79b7afc.tar.gz focaccia-qemu-0ebf9a748881fa85491501f0fa3ca5aec79b7afc.zip | |
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>
Diffstat (limited to 'include/hw/compat.h')
| -rw-r--r-- | include/hw/compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/hw/compat.h b/include/hw/compat.h index 7f31850dfa..bc9e3a6627 100644 --- a/include/hw/compat.h +++ b/include/hw/compat.h @@ -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 \ |