OSDN Git Service

iommu/vt-d: Detach domain before using a private one
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 6 Aug 2019 00:14:08 +0000 (08:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Aug 2019 15:35:25 +0000 (17:35 +0200)
commitae23bfb68f2896835e54a137688906713cb607e7
tree792fcee847d247f73362cc1a1ec87134f617c4d5
parentab2cbeb0ed301a9f0460078e91b09f39958212ef
iommu/vt-d: Detach domain before using a private one

When the default domain of a group doesn't work for a device,
the iommu driver will try to use a private domain. The domain
which was previously attached to the device must be detached.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Fixes: 942067f1b6b97 ("iommu/vt-d: Identify default domains replaced with private")
Reported-by: Alex Williamson <alex.williamson@redhat.com>
Link: https://lkml.org/lkml/2019/8/2/1379
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c