aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2017-03-16 03:21:42 +0000
committerPeter Grehan <grehan@FreeBSD.org>2017-03-16 03:21:42 +0000
commit3da443021fdbd2141faf7651fb8433c80d316d7f (patch)
treee9519fc284c3ccff31d7ee5482a594cdbaf65e3e
parent494deaf8621bb0d7542dcbeb065935f65b5a1441 (diff)
Notes
-rw-r--r--sys/amd64/vmm/x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/vmm/x86.c b/sys/amd64/vmm/x86.c
index 525e1d9b912f..61d99d502ac2 100644
--- a/sys/amd64/vmm/x86.c
+++ b/sys/amd64/vmm/x86.c
@@ -176,6 +176,9 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
/* Don't advertise the OS visible workaround feature */
regs[2] &= ~AMDID2_OSVW;
+ /* Hide mwaitx/monitorx capability from the guest */
+ regs[2] &= ~AMDID2_MWAITX;
+
/*
* Hide rdtscp/ia32_tsc_aux until we know how
* to deal with them.