• M
    pci: implement bridge filtering · 7df32ca0
    Michael S. Tsirkin 提交于
    Support bridge filtering on top of the memory
    API as suggested by Avi Kivity:
    
    Create a memory region for the bridge's address space.  This region is
    not directly added to system_memory or its descendants.  Devices under
    the bridge see this region as its pci_address_space().  The region is
    as large as the entire address space - it does not take into account
    any windows.
    
    For each of the three windows (pref, non-pref, vga), create an alias
    with the appropriate start and size.  Map the alias into the bridge's
    parent's pci_address_space(), as subregions.
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    7df32ca0
pci.c 64.5 KB