diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-08-13 12:05:35 +0800 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-08-13 12:05:35 +0800 |
commit | c2fc3c5f4caa3621dafe2a339559d669f2365347 (patch) | |
tree | 648b699a260e28620438aea4eea9376bf63c407d /emulators/virtualbox-ose/files | |
parent | f7dae64f13c7b60a21b6f1e186a20b8bff6f365d (diff) | |
download | freebsd-ports-gnome-c2fc3c5f4caa3621dafe2a339559d669f2365347.tar.gz freebsd-ports-gnome-c2fc3c5f4caa3621dafe2a339559d669f2365347.tar.zst freebsd-ports-gnome-c2fc3c5f4caa3621dafe2a339559d669f2365347.zip |
Temporarily disable AVX support for guest. It is unstable for FreeBSD.
PR: 211651
Diffstat (limited to 'emulators/virtualbox-ose/files')
-rw-r--r-- | emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp | 21 |
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} |