AMD/IOMMU: pass IOMMU to {get,free,update}_intremap_entry()
authorJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:16:14 +0000 (13:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 31 Jul 2019 11:16:14 +0000 (13:16 +0200)
commitd4919102cf31c070ccc908421ea24f4246b08eda
tree4a7ae7d3e4c04ba9cb05531b6fa1e78b792e2da6
parentb75623c5062b741248547862a3e1b7d4b129c128
AMD/IOMMU: pass IOMMU to {get,free,update}_intremap_entry()

The functions will want to know IOMMU properties (specifically the IRTE
size) subsequently.

Rather than introducing a second error path bogusly returning -E... from
amd_iommu_read_ioapic_from_ire(), also change the existing one to follow
VT-d in returning the raw (untranslated) IO-APIC RTE.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Brian Woods <brian.woods@amd.com>
xen/drivers/passthrough/amd/iommu_intr.c