vfio/pci: Add test for BAR restore
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 24 Mar 2016 19:06:16 +0000 (13:06 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Apr 2016 17:12:33 +0000 (11:12 -0600)
commitdc928109973336fd4d572d460cf3964d56aa087f
tree294cf19ae0e5eda1e522b566f1e16fc7ea223ddc
parent450744051d201c4d72436ebf5b04b9a06ba2cf30
vfio/pci: Add test for BAR restore

If a device is reset without the memory or i/o bits enabled in the
command register we may not detect it, potentially leaving the device
without valid BAR programming.  Add an additional test to check the
BARs on each write to the command register.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c