Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2016 04:05:35 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420152 - in head/emulators/virtualbox-ose: . files
Message-ID:  <201608130405.u7D45ZEr078772@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Sat Aug 13 04:05:35 2016
New Revision: 420152
URL: https://svnweb.freebsd.org/changeset/ports/420152

Log:
  Temporarily disable AVX support for guest.  It is unstable for FreeBSD.
  
  PR:		211651

Added:
  head/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp   (contents, props changed)
Modified:
  head/emulators/virtualbox-ose/Makefile

Modified: head/emulators/virtualbox-ose/Makefile
==============================================================================
--- head/emulators/virtualbox-ose/Makefile	Fri Aug 12 23:41:42 2016	(r420151)
+++ head/emulators/virtualbox-ose/Makefile	Sat Aug 13 04:05:35 2016	(r420152)
@@ -3,6 +3,7 @@
 
 PORTNAME=	virtualbox-ose
 PORTVERSION=	5.0.26
+PORTREVISION=	1
 CATEGORIES=	emulators
 MASTER_SITES=	http://download.virtualbox.org/virtualbox/${PORTVERSION}/
 DISTFILES=	VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS}

Added: head/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/virtualbox-ose/files/patch-src_VBox_VMM_VMMR3_CPUMR3CpuId.cpp	Sat Aug 13 04:05:35 2016	(r420152)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608130405.u7D45ZEr078772>