x86/vtd: Drop struct intel_iommu
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Nov 2018 15:27:41 +0000 (15:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Sep 2019 10:45:00 +0000 (11:45 +0100)
commit9676360b7ae3dc59ce0e0080769fbd6a1121d1be
treef5808ab5895837cad17f278140dce11d900d74b1
parent488eccdd568bb781b989d9c897045e3124339d6b
x86/vtd: Drop struct intel_iommu

The sole remaining member of struct intel_iommu is the drhd backpointer.  Move
this into struct vtd_iommu, replacing the the 'intel' pointer.

This removes one dynamic memory allocation per IOMMU on the system.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/drivers/passthrough/vtd/quirks.c
xen/drivers/passthrough/vtd/utils.c