Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9335afe authored by Shane Wang's avatar Shane Wang Committed by Avi Kivity
Browse files

KVM: VMX: Inform user about INTEL_TXT dependency



Inform user to either disable TXT in the BIOS or do TXT launch
with tboot before enabling KVM since some BIOSes do not set
FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX bit when TXT is enabled.

Signed-off-by: default avatarShane Wang <shane.wang@intel.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 75b7127c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1305,9 +1305,12 @@ static __init int vmx_disabled_by_bios(void)
			&& tboot_enabled())
			return 1;
		if (!(msr & FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX)
			&& !tboot_enabled())
			&& !tboot_enabled()) {
			printk(KERN_WARNING "kvm: disable TXT in the BIOS or "
				" activate TXT before enabling KVM\n");
			return 1;
		}
	}

	return 0;
	/* locked but not enabled */