virtio_pci: split vp_try_to_find_vqs into INTx and MSI-X variants
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Nov 2016 10:43:16 +0000 (11:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:12:49 +0000 (00:12 +0200)
commita3cbec69727c8c149ee2b3652e184818cc269fe6
treecbe299e049f0fc919f37210714878e4d659ffa14
parent66f2f55542270c44d67f05533594f75404c1481a
virtio_pci: split vp_try_to_find_vqs into INTx and MSI-X variants

There is basically no shared logic between the INTx and MSI-X case in
vp_try_to_find_vqs, so split the function into two and clean them up
a little bit.

Also remove the fairly pointless vp_request_intx wrapper while we're at it.

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