OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:26 +0000 (10:10 +0100)
commit07a93b48a0f73e0cb74355a7dd80c6ad55bed674
treedcaeef85a0d28ef5a483e3a45600740f2c11abf4
parentddf2588a05c820b305bc6db2fe6e498a3bc6fde9
iommu/amd: Limit the IOVA page range to the specified addresses

[ Upstream commit b92b4fb5c14257c0e7eae291ecc1f7b1962e1699 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu.c