aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/virtualbox-ose/files
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/virtualbox-ose/files')
-rw-r--r--emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp b/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp
new file mode 100644
index 000000000000..7d7b2bdc212a
--- /dev/null
+++ b/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp
@@ -0,0 +1,21 @@
+--- src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp.orig 2016-07-18 11:57:09 UTC
++++ src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp
+@@ -3797,6 +3797,10 @@ static int cpumR3CpuIdReadConfig(PVM pVM
+ rc = cpumR3CpuIdReadIsaExtCfgLegacy(pVM, pIsaExts, pCpumCfg, "SSE4.2", &pConfig->enmSse42, true);
+ AssertLogRelRCReturn(rc, rc);
+
++#ifdef __FreeBSD__
++ // XXX PR211651: Disable XSAVE/XRSTOR for guest
++ bool const fMayHaveXSave = false;
++#else
+ bool const fMayHaveXSave = fNestedPagingAndFullGuestExec
+ && pVM->cpum.s.HostFeatures.fXSaveRstor
+ && pVM->cpum.s.HostFeatures.fOpSysXSaveRstor
+@@ -3804,6 +3808,7 @@ static int cpumR3CpuIdReadConfig(PVM pVM
+ && !HMIsLongModeAllowed(pVM)
+ #endif
+ ;
++#endif
+ uint64_t const fXStateHostMask = pVM->cpum.s.fXStateHostMask;
+
+ /** @cfgm{/CPUM/IsaExts/XSAVE, boolean, depends}