virtio-blk: enable multiple vectors when using multiple I/O queues
commit0ebf9a748881fa85491501f0fa3ca5aec79b7afc
authorChangpeng Liu <changpeng.liu@intel.com>
Tue, 6 Feb 2018 01:35:34 +0000 (6 09:35 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Feb 2018 19:06:41 +0000 (8 21:06 +0200)
treea07a0a912ce5a265aad3cf8c5c9384b597c41e8f
parent9d6b9db19c4b99ce5a1ad75b490c01edd2c2b0cf
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>
hw/virtio/virtio-pci.c
include/hw/compat.h