VT-d: correct off-by-1 in number-of-IOMMUs check
authorJan Beulich <jbeulich@suse.com>
Tue, 23 Mar 2021 16:01:30 +0000 (17:01 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 23 Mar 2021 16:01:30 +0000 (17:01 +0100)
commitb9b3082002cac68726fb303e0abd2ff0113d4657
treeb7fa17c0bb75784bb3012043f43fa5dc0f2e8a30
parentecdff2f5a03210119b71806c3f5571d6906dd85e
VT-d: correct off-by-1 in number-of-IOMMUs check

Otherwise, if we really run on a system with this many IOMMUs,
entering/leaving S3 would overrun iommu_state[].

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