]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ae4a7fd5baa97bbdb1962a9423d7b31a63abace
tree081cd2b7bed61ba045dc2f7526e3e223ad933416
parentb30202507b1048563f60cac8aaf5cdbacac763e9
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: a3674e9edf86 ('iommu/amd: Implement apply_dm_region call-back')
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/amd_iommu.c