VT-d: correct off-by-1 in fault register range check
authorJan Beulich <jbeulich@suse.com>
Wed, 24 Nov 2021 10:12:03 +0000 (11:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Nov 2021 10:12:03 +0000 (11:12 +0100)
commit08826a044ebfefc429aaecb861dc31051f2bb288
tree356408bf15af4a52ede9dd01c1ab4e7fafd73251
parent859d11b2791292c1b997242ac3ea5a38dc34c80e
VT-d: correct off-by-1 in fault register range check

All our present implementation requires is that the range fully fits
in a single page. No need to exclude the case of the last register
extending right to the end of that page.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c