iommu/amd: Limit the IOVA page range to the specified addresses
authorGary R Hook <gary.hook@amd.com>
Fri, 3 Nov 2017 16:50:34 +0000 (10:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 3 Nov 2017 16:50:34 +0000 (10:50 -0600)
commitb92b4fb5c14257c0e7eae291ecc1f7b1962e1699
tree081cd2b7bed61ba045dc2f7526e3e223ad933416
parent049541e178d5b1d003584aa0ad2a96101f0694d2
iommu/amd: Limit the IOVA page range to the specified addresses

The extent of pages specified when applying a reserved region should
include up to the last page of the range, but not the page following
the range.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Fixes: 8d54d6c8b8f3 ('iommu/amd: Implement apply_dm_region call-back')
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/amd_iommu.c