diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2015-05-11 16:59:20 +0300 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2015-05-11 16:59:20 +0300 |
commit | 4ed6a540fab8ea4388c1703b73ecfed68a2009d1 (patch) | |
tree | dde73b1a39c9cc68e25480fb889834706f0cec4e /fs/btrfs/ulist.c | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
download | linux-4ed6a540fab8ea4388c1703b73ecfed68a2009d1.tar.xz |
iommu/vt-d: Fix passthrough mode with translation-disabled devices
When we use 'intel_iommu=igfx_off' to disable translation for the
graphics, and when we discover that the BIOS has misconfigured the DMAR
setup for I/OAT, we use a special DUMMY_DEVICE_DOMAIN_INFO value in
dev->archdata.iommu to indicate that translation is disabled.
With passthrough mode, we were attempting to dereference that as a
normal pointer to a struct device_domain_info when setting up an
identity mapping for the affected device.
This fixes the problem by making device_to_iommu() explicitly check for
the special value and indicate that no IOMMU was found to handle the
devices in question.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@vger.kernel.org (which means you can pick up 18436afdc now too)
Diffstat (limited to 'fs/btrfs/ulist.c')
0 files changed, 0 insertions, 0 deletions