Hide the monitor/mwait instruction capability from the guest until we know how

to properly intercept it.

Obtained from:	NetApp
This commit is contained in:
neel 2012-10-25 04:08:26 +00:00
parent f5d9223df5
commit 80aee5fb8a

View File

@ -127,6 +127,12 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
regs[2] &= ~(CPUID2_XSAVE | CPUID2_OSXSAVE |
CPUID2_AVX);
/*
* Hide monitor/mwait until we know how to deal with
* these instructions.
*/
regs[2] &= ~CPUID2_MON;
/*
* Hide thermal monitoring
*/