x86, tboot: enable SMX operation
Subsystems (2)
PATCH 1/1 x86, tboot: enable SMX operation
Safer Mode Extensions (SMX) provide a programming interface for system software to establish a measured environment within the platform to support trust decisions by end users.
We need enable SMX operation by setting CR4.SMXE[Bit 14] = 1, if system has txt supported and lives in messured environment.
Signed-off-by Qiaowei Ren <[email protected]>
--- arch/x86/include/uapi/asm/processor-flags.h | 1 + arch/x86/kernel/tboot.c | 100 ++++++++++++++------------- 2 files changed, 53 insertions(+), 48 deletions(-)
arch/x86/include/uapi/asm/processor-flags.h +1 -0
@@ -61,6 +61,7 @@#define X86_CR4_OSFXSR 0x00000200/* enable fast FPU save and restore */ #define X86_CR4_OSXMMEXCPT 0x00000400/* enable unmasked SSE exceptions */ #define X86_CR4_VMXE 0x00002000/* enable VMX virtualization */ +#define X86_CR4_SMXE 0x00004000/* enable SMX operation */ #define X86_CR4_RDWRGSFS 0x00010000/* enable RDWRGSFS support */ #define X86_CR4_PCIDE 0x00020000/* enable PCID support */ #define X86_CR4_OSXSAVE 0x00040000/* enable xsave and xrestore */
arch/x86/kernel/tboot.c +52 -48
124 lines not on this page · raw message
Signature · 1 line
1.7.9.5