svn commit: r234939 - projects/bhyve/sys/amd64/vmm
Peter Grehan
grehan at FreeBSD.org
Thu May 3 05:04:38 UTC 2012
Author: grehan
Date: Thu May 3 05:04:37 2012
New Revision: 234939
URL: http://svn.freebsd.org/changeset/base/234939
Log:
Until the issue of how to handle guest XCR0 state is resolved,
prevent CURRENT guests from hitting unhandled xsetbv exits
by hiding the xsave/osxsave/avx cpuid2 bits.
Modified:
projects/bhyve/sys/amd64/vmm/x86.c
Modified: projects/bhyve/sys/amd64/vmm/x86.c
==============================================================================
--- projects/bhyve/sys/amd64/vmm/x86.c Thu May 3 03:11:27 2012 (r234938)
+++ projects/bhyve/sys/amd64/vmm/x86.c Thu May 3 05:04:37 2012 (r234939)
@@ -105,6 +105,13 @@ x86_emulate_cpuid(uint32_t *eax, uint32_
regs[2] |= CPUID2_X2APIC | CPUID2_HV;
/*
+ * Hide xsave/osxsave/avx until the FPU save/restore
+ * issues are resolved
+ */
+ regs[2] &= ~(CPUID2_XSAVE | CPUID2_OSXSAVE |
+ CPUID2_AVX);
+
+ /*
* Hide thermal monitoring
*/
regs[3] &= ~(CPUID_ACPI | CPUID_TM);
More information about the svn-src-projects
mailing list