vfio-pci: Use cached MSI/MSI-X capabilities
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 18 Apr 2013 21:12:58 +0000 (15:12 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 24 Apr 2013 17:35:56 +0000 (11:35 -0600)
commita9047f24df85b06d3fd443ff76e9993bc127c570
tree25a9cd1957bb67b6bf4f571e3d66a8873838df52
parent508d1aa602ef0679a9cfc181ce918fbc4a2b3a45
vfio-pci: Use cached MSI/MSI-X capabilities

We now cache the MSI/MSI-X capability offsets in the struct pci_dev,
so no need to find the capabilities again.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c