virtio_pci: simplify MSI-X setup
authorChristoph Hellwig <hch@lst.de>
Sun, 5 Feb 2017 17:15:21 +0000 (18:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Feb 2017 18:54:04 +0000 (20:54 +0200)
commit52a61516125fa9a21b3bdf4f90928308e2e5573f
treeef54e85684ff0c2faf1e1b8deaed9dd461251861
parent53a020c661741f3b87ad3ac6fa545088aaebac9b
virtio_pci: simplify MSI-X setup

Try to grab the MSI-X vectors early and fall back to the shared one
before doing lots of allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c