vmm: Let guests enable SMEP/SMAP if the host supports it
Reviewed by: kib, grehan, jhb Tested by: grehan (AMD) MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30462
This commit is contained in:
parent
9d0bc96ef8
commit
4c599db71a
@ -441,10 +441,12 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id, uint64_t *rax, uint64_t *rbx,
|
||||
*/
|
||||
regs[1] &= (CPUID_STDEXT_FSGSBASE |
|
||||
CPUID_STDEXT_BMI1 | CPUID_STDEXT_HLE |
|
||||
CPUID_STDEXT_AVX2 | CPUID_STDEXT_BMI2 |
|
||||
CPUID_STDEXT_AVX2 | CPUID_STDEXT_SMEP |
|
||||
CPUID_STDEXT_BMI2 |
|
||||
CPUID_STDEXT_ERMS | CPUID_STDEXT_RTM |
|
||||
CPUID_STDEXT_AVX512F |
|
||||
CPUID_STDEXT_RDSEED |
|
||||
CPUID_STDEXT_SMAP |
|
||||
CPUID_STDEXT_AVX512PF |
|
||||
CPUID_STDEXT_AVX512ER |
|
||||
CPUID_STDEXT_AVX512CD | CPUID_STDEXT_SHA);
|
||||
|
Loading…
Reference in New Issue
Block a user