summaryrefslogtreecommitdiffstats
path: root/sys/amd64/vmm
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2014-10-18 05:39:32 +0000
committerneel <neel@FreeBSD.org>2014-10-18 05:39:32 +0000
commitd5ca76422abad1ccdac4e125d13cef3d28025dc3 (patch)
tree8915f0c4974897ba4b82cb1bd3bb516818f06703 /sys/amd64/vmm
parent170f49cd346e3fe89bb5fd6322940694477b7002 (diff)
downloadFreeBSD-src-d5ca76422abad1ccdac4e125d13cef3d28025dc3.zip
FreeBSD-src-d5ca76422abad1ccdac4e125d13cef3d28025dc3.tar.gz
Don't advertise support for the NodeID MSR since bhyve doesn't emulate it.
Diffstat (limited to 'sys/amd64/vmm')
-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 0b32eef..cf0b54b 100644
--- a/sys/amd64/vmm/x86.c
+++ b/sys/amd64/vmm/x86.c
@@ -171,6 +171,9 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id,
*/
regs[2] &= ~AMDID2_IBS;
+ /* NodeID MSR not available */
+ regs[2] &= ~AMDID2_NODE_ID;
+
/*
* Hide rdtscp/ia32_tsc_aux until we know how
* to deal with them.
OpenPOWER on IntegriCloud