x86/vtd: Drop struct ir_ctrl
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Nov 2018 15:02:18 +0000 (15:02 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 5 Sep 2019 10:26:26 +0000 (11:26 +0100)
commit1cc8d6fbf48ac7226f34e16ca07d06e25acb222b
tree62d4f1f1f30c74a6a1a10b3573991bc3105f197b
parent8cfc407fba2b8b924a37c01ebba96d66c48628ab
x86/vtd: Drop struct ir_ctrl

It is unclear why this abstraction exists, but iommu_ir_ctrl() returns
possibly NULL and every user unconditionally dereferences the result.  In
practice, I can't spot a path where iommu is NULL, so I think it is mostly
dead.

Move the fields into struct vtd_iommu, and delete iommu_ir_ctrl().

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