Files
acrn-hypervisor/hypervisor/arch/x86
Zide Chen f4cce46605 hv: disable SMX (Safer Mode Extension) from guest CPUID
SMX should be disabled on guests.

Actually current code assumes SMX is disabled (no VM exit handler for GETSEC
and bit 2 of IA32_FEATURE_CONTROL is set), and this patch simply explicitly
clear guest CPUID.01H.ECX[6].

Since both CPUID.01H.ECX[5] and CPUID.01H.ECX[6] are cleared from guest CPUID,
MSR IA32_SMM_MONITOR_CTL is not available in guests.

Need to make sure CR4.SMXE is cleared in guests.

Tracked-On: #1867
Signed-off-by: Zide Chen <zide.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-01-04 16:05:50 +08:00
..
2018-12-19 09:07:14 +08:00
2018-12-28 23:26:31 +08:00
2018-12-28 23:26:31 +08:00
2018-12-21 10:33:32 +08:00
2018-11-13 16:28:58 +08:00
2018-12-21 10:34:15 +08:00
2018-12-28 23:26:31 +08:00
2018-12-26 14:17:24 +08:00
2018-12-28 23:26:31 +08:00
2018-12-25 13:25:14 +08:00
2018-12-12 13:08:10 +08:00
2018-12-17 14:31:52 +08:00
2019-01-04 11:10:30 +08:00