vfio/pci-quirks: Exclude non-ioport BAR from NVIDIA quirk
commit8f419c5b43b988df4ef11315aeb8524e50c99687
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 6 Apr 2017 22:03:26 +0000 (6 16:03 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 6 Apr 2017 22:03:26 +0000 (6 16:03 -0600)
tree012ea99abecf32424341c39e7553274c5ddb8835
parent54d689988c847271d87b3eb113712147129fb811
vfio/pci-quirks: Exclude non-ioport BAR from NVIDIA quirk

The NVIDIA BAR5 quirk is targeting an ioport BAR.  Some older devices
have a BAR5 which is not ioport and can induce a segfault here.  Test
the BAR type to skip these devices.

Link: https://bugs.launchpad.net/qemu/+bug/1678466
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci-quirks.c