Skip to content
  • Rahul Singh's avatar
    xen/arm: Add PHYSDEVOP_pci_device_(*add/remove) support for ARM · f9187cf1
    Rahul Singh authored
    
    
    Hardware domain is in charge of doing the PCI enumeration and will
    discover the PCI devices and then will communicate to XEN via hyper
    call PHYSDEVOP_pci_device_add(..) to add the PCI devices in XEN.
    
    Also implement PHYSDEVOP_pci_device_remove(..) to remove the PCI device.
    
    As most of the code for PHYSDEVOP_pci_device_* is the same between x86
    and ARM, move the code to a common file to avoid duplication.
    
    There are other PHYSDEVOP_pci_device_* operations to add PCI devices.
    Currently implemented PHYSDEVOP_pci_device_remove(..) and
    PHYSDEVOP_pci_device_add(..) only as those are minimum required to
    support PCI passthrough on ARM.
    
    Signed-off-by: Rahul Singh's avatarRahul Singh <rahul.singh@arm.com>
    Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
    Acked-by: default avatarJan Beulich <jbeulich@suse.com>
    f9187cf1