• Jiang Liu's avatar
    iommu/vt-d: Implement DMAR unit hotplug framework · 6b197249
    Jiang Liu authored
    On Intel platforms, an IO Hub (PCI/PCIe host bridge) may contain DMAR
    units, so we need to support DMAR hotplug when supporting PCI host
    bridge hotplug on Intel platforms.
    
    According to Section 8.8 "Remapping Hardware Unit Hot Plug" in "Intel
    Virtualization Technology for Directed IO Architecture Specification
    Rev 2.2", ACPI BIOS should implement ACPI _DSM method under the ACPI
    object for the PCI host bridge to support DMAR hotplug.
    
    This patch introduces interfaces to parse ACPI _DSM method for
    DMAR unit hotplug. It also implements state machines for DMAR unit
    hot-addition and hot-removal.
    
    The PCI host bridge hotplug driver should call dmar_hotplug_hotplug()
    before scanning PCI devices connected for hot-addition and after
    destroying all PCI devices for hot-removal.
    Signed-off-by: default avatarJiang Liu <jiang.liu@linux.intel.com>
    Reviewed-by: default avatarYijing Wang <wangyijing@huawei.com>
    Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    6b197249
intel-iommu.c 117 KB