iommu/vt-d: Allow devices with RMRRs to use identity domain
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 15 Jan 2020 03:03:58 +0000 (11:03 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 24 Jan 2020 14:32:54 +0000 (15:32 +0100)
commit9235cb13d7d17baba0b3a9277381258361e95c16
tree541ed4641012efb42dd4d86261218c7f5c1c7260
parentce4cc52b51dfaefff65c6d2f31f169122a8659d4
iommu/vt-d: Allow devices with RMRRs to use identity domain

Since commit ea2447f700cab ("intel-iommu: Prevent devices with
RMRRs from being placed into SI Domain"), the Intel IOMMU driver
doesn't allow any devices with RMRR locked to use the identity
domain. This was added to to fix the issue where the RMRR info
for devices being placed in and out of the identity domain gets
lost. This identity maps all RMRRs when setting up the identity
domain, so that devices with RMRRs could also use it.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c