Skip to content

Commit

Permalink
iommu/vt-d: Correctly disable Intel IOMMU force on
Browse files Browse the repository at this point in the history
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: bfd20f1 ('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>
  • Loading branch information
Shaohua Li authored and Joerg Roedel committed Jun 15, 2017
1 parent 32c1431 commit 7304e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/tboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7304e8f

Please sign in to comment.