• J
    iommu/vt-d: Implement DMAR unit hotplug framework · 6b197249
    Jiang Liu 提交于
    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: NJiang Liu <jiang.liu@linux.intel.com>
    Reviewed-by: NYijing Wang <wangyijing@huawei.com>
    Signed-off-by: NJoerg Roedel <jroedel@suse.de>
    6b197249
dmar.h 6.3 KB