VT-d: correct off-by-1 in number-of-IOMMUs check
authorJan Beulich <jbeulich@suse.com>
Tue, 20 Apr 2021 10:01:40 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Apr 2021 10:01:40 +0000 (12:01 +0200)
commit0c4caea34a16173a14074327992122e895984cea
tree0c3aa77d8402af706581b667ab944ae60a60960f
parent1ebc077a5608bd8eff7e6401696f16c9a266b73f
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>
master commit: b9b3082002cac68726fb303e0abd2ff0113d4657
master date: 2021-03-23 17:01:30 +0100
xen/drivers/passthrough/vtd/iommu.c