summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/tboot.c
diff options
context:
space:
mode:
authorShaohua Li2017-06-08 20:27:14 +0200
committerJoerg Roedel2017-06-15 16:41:10 +0200
commit7304e8f28bb2f3cb2baf37c1bb2caa0f54ca4e43 (patch)
tree7eb5f08582b5e1e407f0311638051f4779f8883c /arch/x86/kernel/tboot.c
parentLinux 4.12-rc5 (diff)
downloadkernel-qcow2-linux-7304e8f28bb2f3cb2baf37c1bb2caa0f54ca4e43.tar.gz
kernel-qcow2-linux-7304e8f28bb2f3cb2baf37c1bb2caa0f54ca4e43.tar.xz
kernel-qcow2-linux-7304e8f28bb2f3cb2baf37c1bb2caa0f54ca4e43.zip
iommu/vt-d: Correctly disable Intel IOMMU force on
I made a mistake in commit bfd20f1. We should skip the force on with the option enabled instead of vice versa. Not sure why this passed our performance test, sorry. Fixes: bfd20f1cc850 ('x86, iommu/vt-d: Add an option to disable Intel IOMMU force on') Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/x86/kernel/tboot.c')
-rw-r--r--arch/x86/kernel/tboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c
index 4b1724059909..a4eb27918ceb 100644
--- a/arch/x86/kernel/tboot.c
+++ b/arch/x86/kernel/tboot.c
@@ -514,7 +514,7 @@ int tboot_force_iommu(void)
if (!tboot_enabled())
return 0;
- if (!intel_iommu_tboot_noforce)
+ if (intel_iommu_tboot_noforce)
return 1;
if (no_iommu || swiotlb || dmar_disabled)