iommu/vt-d: Remove rmrr check in domain attaching device path
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 9 Aug 2023 12:48:03 +0000 (20:48 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 9 Aug 2023 15:46:18 +0000 (17:46 +0200)
commitd3aedf94f480971f7ffe88d337ba72e6f7d32497
tree3f3ab68a1bf8f25a1ddb60a6417eff43c3887eea
parenta48ce36e2786f8bb33e9f42ea2d0c23ea4af3e0d
iommu/vt-d: Remove rmrr check in domain attaching device path

The core code now prevents devices with RMRR regions from being assigned
to user space. There is no need to check for this condition in individual
drivers. Remove it to avoid duplicate code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20230724060352.113458-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c