]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb65719d96ca540f51d2d7970c9706722903230f
tree792fcee847d247f73362cc1a1ec87134f617c4d5
parentb10ef5e152fdadd81d91af6aa445bb7c6351f4c3
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: e343746f73c27 ("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