Don't advertise the Intel SMX capability to the guest.
Reported by: Leon Dang (ldang@nahannisys.com) MFC after: 1 week
This commit is contained in:
parent
a523fa069f
commit
317080849e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282351
@ -230,10 +230,11 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
|
||||
regs[1] |= (vcpu_id << CPUID_0000_0001_APICID_SHIFT);
|
||||
|
||||
/*
|
||||
* Don't expose VMX, SpeedStep or TME capability.
|
||||
* Don't expose VMX, SpeedStep, TME or SMX capability.
|
||||
* Advertise x2APIC capability and Hypervisor guest.
|
||||
*/
|
||||
regs[2] &= ~(CPUID2_VMX | CPUID2_EST | CPUID2_TM2);
|
||||
regs[2] &= ~(CPUID2_SMX);
|
||||
|
||||
regs[2] |= CPUID2_HV;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user