• Keir Fraser's avatar
    IOMMU: Add two generic functions to vendor neutral interface · 0506bc4d
    Keir Fraser authored
    Add 2 generic functions into the vendor neutral iommu interface, The
    reason is that from changeset 19732, there is only one global flag
    "iommu_enabled" that controls iommu enablement for both vtd and amd
    systems, so we need different code paths for vtd and amd iommu systems
    if this flag has been turned on. Also, the early checking of
    "iommu_enabled" in iommu_setup() is removed to prevent iommu
    functionalities from been disabled on amd systems.
    Signed-off-by: default avatarWei Wang <wei.wang2@amd.com>
msi.c 23.4 KB