]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc67beccb4c24a42ed296a6df7313104731c01ea4
treeef54e85684ff0c2faf1e1b8deaed9dd461251861
parent5f11215d7e49fe2e2e8671e64cf7de60b3cea4e3
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