diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-11-12 13:56:51 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-11-12 13:56:51 +0100 |
commit | c06e3d81031424a8a0f725198c16ad81007be89c (patch) | |
tree | 5ccbfe5c803a6e735ab06e06f61722b521a6ef1e /xen/include | |
parent | e2d0a42381b686451bed3e0e3ab8551f6c2d4090 (diff) |
VT-d: per-domain IOMMU bitmap needs to have dynamic size
With no upper bound (anymore) on the number of IOMMUs, a fixed-size
64-bit map may be insufficient (systems with 40 IOMMUs have already been
observed).
Fixes: 27713fa2aa21 ("VT-d: improve save/restore of registers across S3")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/asm-x86/iommu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/iommu.h b/xen/include/asm-x86/iommu.h index 8aff75e4ff..de46149b40 100644 --- a/xen/include/asm-x86/iommu.h +++ b/xen/include/asm-x86/iommu.h @@ -58,7 +58,7 @@ struct arch_iommu struct { uint64_t pgd_maddr; /* io page directory machine address */ unsigned int agaw; /* adjusted guest address width, 0 is level 2 30-bit */ - uint64_t iommu_bitmap; /* bitmap of iommu(s) that the domain uses */ + unsigned long *iommu_bitmap; /* bitmap of iommu(s) that the domain uses */ } vtd; /* AMD IOMMU */ struct { |