FreeBSD Bugzilla – Attachment 196026 Details for
Bug 230460
emulators/virtualbox-ose panic on CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Vbox SMAP support
vbox-smap.patch (text/plain), 2.06 KB, created by
Vladimir Kondratyev
on 2018-08-09 13:07:24 UTC
(
hide
)
Description:
Vbox SMAP support
Filename:
MIME Type:
Creator:
Vladimir Kondratyev
Created:
2018-08-09 13:07:24 UTC
Size:
2.06 KB
patch
obsolete
>Index: emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c >=================================================================== >--- emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c (revision 476645) >+++ emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c (working copy) >@@ -1,7 +1,51 @@ > --- src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c.orig 2016-07-18 11:56:20 UTC > +++ src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c >-@@ -541,8 +541,7 @@ bool VBOXCALL supdrvOSGetForcedAsyncTsc >+@@ -44,6 +44,11 @@ >+ #include <sys/fcntl.h> >+ #include <sys/conf.h> >+ #include <sys/uio.h> >++#if __FreeBSD_version >= 1200076 >++#include <machine/cpufunc.h> >++#include <machine/md_var.h> >++#include <machine/specialreg.h> >++#endif > >+ #include "../SUPDrvInternal.h" >+ #include <VBox/version.h> >+@@ -310,6 +315,12 @@ static int VBoxDrvFreeBSDIOCtl(struct cd >+ { >+ PSUPDRVSESSION pSession; >+ devfs_get_cdevpriv((void **)&pSession); >++ int rc; >++ >++#if __FreeBSD_version >= 1200076 >++ if ((cpu_stdext_feature & CPUID_STDEXT_SMAP) != 0) >++ stac(); >++#endif >+ >+ /* >+ * Deal with the fast ioctl path first. >+@@ -318,9 +329,16 @@ static int VBoxDrvFreeBSDIOCtl(struct cd >+ || ulCmd == SUP_IOCTL_FAST_DO_HM_RUN >+ || ulCmd == SUP_IOCTL_FAST_DO_NOP) >+ && pSession->fUnrestricted == true) >+- return supdrvIOCtlFast(ulCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession); >++ rc = supdrvIOCtlFast(ulCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession); >++ else >++ rc = VBoxDrvFreeBSDIOCtlSlow(pSession, ulCmd, pvData, pTd); >+ >+- return VBoxDrvFreeBSDIOCtlSlow(pSession, ulCmd, pvData, pTd); >++#if __FreeBSD_version >= 1200076 >++ if ((cpu_stdext_feature & CPUID_STDEXT_SMAP) != 0) >++ clac(); >++#endif >++ >++ return rc; >+ } >+ >+ >+@@ -541,8 +559,7 @@ bool VBOXCALL supdrvOSGetForcedAsyncTsc >+ > bool VBOXCALL supdrvOSAreCpusOfflinedOnSuspend(void) > { > - /** @todo verify this. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230460
:
196017
|
196026
|
196033
|
196484
|
196560