VT-d: per-domain IOMMU bitmap needs to have dynamic size
authorJan Beulich <jbeulich@suse.com>
Fri, 12 Nov 2021 12:56:51 +0000 (13:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 12 Nov 2021 12:56:51 +0000 (13:56 +0100)
commitc06e3d81031424a8a0f725198c16ad81007be89c
tree5ccbfe5c803a6e735ab06e06f61722b521a6ef1e
parente2d0a42381b686451bed3e0e3ab8551f6c2d4090
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>
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/iommu.h