diff options
author | neel <neel@FreeBSD.org> | 2012-10-25 04:08:26 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2012-10-25 04:08:26 +0000 |
commit | 80aee5fb8aa2abb172630d47efcb1f8f26f6bcc4 (patch) | |
tree | 16bbdc478fa0f9aa93d6e5d988910bb03989d9b3 /sys/amd64 | |
parent | f5d9223df5e3346dffa11447825ecfb306814df6 (diff) | |
download | FreeBSD-src-80aee5fb8aa2abb172630d47efcb1f8f26f6bcc4.zip FreeBSD-src-80aee5fb8aa2abb172630d47efcb1f8f26f6bcc4.tar.gz |
Hide the monitor/mwait instruction capability from the guest until we know how
to properly intercept it.
Obtained from: NetApp
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/vmm/x86.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/vmm/x86.c b/sys/amd64/vmm/x86.c index 47ba975..ca0d785 100644 --- a/sys/amd64/vmm/x86.c +++ b/sys/amd64/vmm/x86.c @@ -128,6 +128,12 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id, CPUID2_AVX); /* + * Hide monitor/mwait until we know how to deal with + * these instructions. + */ + regs[2] &= ~CPUID2_MON; + + /* * Hide thermal monitoring */ regs[3] &= ~(CPUID_ACPI | CPUID_TM); |