• Jan Beulich's avatar
    VT-d: avoid PCI device lookup · 4067bbfa
    Jan Beulich authored
    The two uses of pci_get_pdev_by_domain() lack proper locking, but are
    also only used to get hold of a NUMA node ID. Calculate and store the
    node ID earlier on and remove the lookups (in lieu of fixing the
    While doing this it became apparent that iommu_alloc()'s use of
    alloc_pgtable_maddr() would occur before RHSAs would have been parsed:
    iommu_alloc() gets called from the DRHD parsing routine, which - on
    spec conforming platforms - happens strictly before RHSA parsing. Defer
    the allocation until after all ACPI table parsing has finished,
    established the node ID there first.
    Suggested-by: default avatarKevin Tian <kevin.tian@intel.com>
    Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
    Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
iommu.h 19 KB