vfio/pci: Expose shadow ROM as PCI option ROM
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Feb 2016 23:02:46 +0000 (16:02 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 22 Feb 2016 23:10:09 +0000 (16:10 -0700)
commita13b64591747e8a4ab2df24540a17fca34de2d34
tree9c0bc81f4e91de885e37c699a65f855eea541e9c
parentf572a960a15e8bb56599f6d2358a9c18f0808e91
vfio/pci: Expose shadow ROM as PCI option ROM

Integrated graphics may have their ROM shadowed at 0xc0000 rather than
implement a PCI option ROM.  Make this ROM appear to the user using
the ROM BAR.

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