cpu/intel/common: Enable GetSec leaves for Intel TXT
Similar to VMX and SMX also enable all GetSec leaves for Intel TXT. Change-Id: I89620c2a98cfceaa785b1a798fafbf35cc99a0b2 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36092 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
parent
59ba0a257a
commit
980d704b4d
|
@ -56,8 +56,13 @@ void set_feature_ctrl_vmx(void)
|
|||
|
||||
if (enable) {
|
||||
msr.lo |= (1 << 2);
|
||||
if (feature_flag & CPUID_SMX)
|
||||
if (feature_flag & CPUID_SMX) {
|
||||
msr.lo |= (1 << 1);
|
||||
if (CONFIG(INTEL_TXT)) {
|
||||
/* Enable GetSec and all GetSec leaves */
|
||||
msr.lo |= (0xff << 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
wrmsr(IA32_FEATURE_CONTROL, msr);
|
||||
|
|
Loading…
Reference in New Issue