4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-02 04:20:28 +08:00

fhandler_proc.cc(format_proc_cpuinfo): report Intel SGX bits

Update to Linux next 5.10 cpuinfo flags for Intel SDM 36.7.1 Software
Guard Extensions, and 38.1.4 SGX Launch Control Configuration.
Launch control restricts what software can run with enclave protections,
which helps protect the system from bad enclaves.
This commit is contained in:
Brian Inglis 2020-12-17 00:11:28 -07:00 committed by Ken Brown
parent 633f39361c
commit b0593cf5fd

View File

@ -1414,6 +1414,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
ftcprint (features1, 0, "fsgsbase"); /* rd/wr fs/gs base */ ftcprint (features1, 0, "fsgsbase"); /* rd/wr fs/gs base */
ftcprint (features1, 1, "tsc_adjust"); /* TSC adjustment MSR 0x3B */ ftcprint (features1, 1, "tsc_adjust"); /* TSC adjustment MSR 0x3B */
ftcprint (features1, 2, "sgx"); /* software guard extensions */
ftcprint (features1, 3, "bmi1"); /* bit manip ext group 1 */ ftcprint (features1, 3, "bmi1"); /* bit manip ext group 1 */
ftcprint (features1, 4, "hle"); /* hardware lock elision */ ftcprint (features1, 4, "hle"); /* hardware lock elision */
ftcprint (features1, 5, "avx2"); /* AVX ext instructions */ ftcprint (features1, 5, "avx2"); /* AVX ext instructions */
@ -1564,6 +1565,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
ftcprint (features1, 27, "movdiri"); /* movdiri instr */ ftcprint (features1, 27, "movdiri"); /* movdiri instr */
ftcprint (features1, 28, "movdir64b"); /* movdir64b instr */ ftcprint (features1, 28, "movdir64b"); /* movdir64b instr */
ftcprint (features1, 29, "enqcmd"); /* enqcmd/s instructions*/ ftcprint (features1, 29, "enqcmd"); /* enqcmd/s instructions*/
ftcprint (features1, 30, "sgx_lc"); /* sgx launch control */
} }
/* AMD MCA cpuid 0x80000007 ebx */ /* AMD MCA cpuid 0x80000007 ebx */