AMD/IOMMU: introduce a "valid" flag for IVRS mappings
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Sep 2019 14:05:01 +0000 (16:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Sep 2019 14:05:01 +0000 (16:05 +0200)
commit34c0dcf84ff6347424808d2740398c892b8ff8e4
treef38bd4d82de8b0be2f6bc3c0815c8df22f88a5f4
parent2ec0c0e13efffa0cb5ad2d98381dacb638c7e786
AMD/IOMMU: introduce a "valid" flag for IVRS mappings

For us to no longer blindly allocate interrupt remapping tables for
everything the ACPI tables name, we can't use struct ivrs_mappings'
intremap_table field anymore to also have the meaning of "this entry
is valid". Add a separate boolean field instead.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/passthrough/amd/iommu_acpi.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/amd-iommu.h