Bridges aren't the only thing that needs to know about VGA, any class VGA device can register for VGA. This adds infrastructure to PCI to allow devices to register VGA regions and incorporates the previous PCI bridge only patch to also make use of this. vfio-pci will also use the pci_register_vga() interface when attaching VGA devices.
v4: Add common pci_vga_[un]register helpers and convert pci_bridge v3: pci_bridge only: add comments and enable bits for snooping & alias v2: pci_bridge only: BRIDGE_CONTROL is 2 bytes --- Alex Williamson (2): pci: Add PCI VGA helpers pci: Teach PCI Bridges about VGA routing hw/pci/pci.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ hw/pci/pci.h | 21 ++++++++++++++++ hw/pci/pci_bridge.c | 45 ++++++++++++++++++++++++++++++++++- hw/pci/pci_bus.h | 7 +++++ hw/pci/pcie_port.c | 2 ++ 5 files changed, 138 insertions(+), 2 deletions(-)