vfio/pci: Cleanup ROM blacklist quirk
commit056dfcb695cde3c62b7dc1d5ed6d2e38b3a73e29
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 23 Sep 2015 19:04:45 +0000 (23 13:04 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 23 Sep 2015 19:04:45 +0000 (23 13:04 -0600)
treed3ebd0c5118e663def22affc7abfab3c66a44a48
parentc00d61d8fa22b096b15e19ee2fde846ffc1c0b5d
vfio/pci: Cleanup ROM blacklist quirk

Create a vendor:device ID helper that we'll also use as we rework the
rest of the quirks.  Re-reading the config entries, even if we get
more blacklist entries, is trivial overhead and only incurred during
device setup.  There's no need to typedef the blacklist structure,
it's a static private data type used once.  The elements get bumped
up to uint32_t to avoid future maintenance issues if PCI_ANY_ID gets
used for a blacklist entry (avoiding an actual hardware match).  Our
test loop is also crying out to be simplified as a for loop.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci-quirks.c
hw/vfio/pci.h
trace-events