FreeBSD Bugzilla – Attachment 192427 Details for
Bug 219913
emulators/virtualbox-ose-kmod: if the MAXCPU option is not the default for the running kernel, then 'kldload vboxdrv.ko' will result in a kernel panic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch.txt (text/plain), 2.37 KB, created by
Craig Leres
on 2018-04-11 03:35:18 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2018-04-11 03:35:18 UTC
Size:
2.37 KB
patch
obsolete
>Index: emulators/virtualbox-ose/Makefile >=================================================================== >--- emulators/virtualbox-ose/Makefile (revision 466968) >+++ emulators/virtualbox-ose/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= virtualbox-ose > PORTVERSION= 5.2.8 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= emulators > MASTER_SITES= http://download.virtualbox.org/virtualbox/${PORTVERSION}/ > DISTFILES= VirtualBox-${PORTVERSION}${EXTRACT_SUFX} ${GUESTADDITIONS} >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 466968) >+++ emulators/virtualbox-ose/files/patch-src_VBox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c (working copy) >@@ -1,7 +1,30 @@ >---- src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c.orig 2016-07-18 11:56:20 UTC >+--- src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c.orig 2018-02-26 16:03:24 UTC > +++ src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c >-@@ -541,8 +541,7 @@ bool VBOXCALL supdrvOSGetForcedAsyncTsc >+@@ -44,6 +44,7 @@ >+ #include <sys/fcntl.h> >+ #include <sys/conf.h> >+ #include <sys/uio.h> >++#include <sys/smp.h> /* mp_maxcpus */ > >+ #include "../SUPDrvInternal.h" >+ #include <VBox/version.h> >+@@ -140,6 +141,14 @@ static SUPDRVDEVEXT g_VBoxDrvFre >+ static int VBoxDrvFreeBSDModuleEvent(struct module *pMod, int enmEventType, void *pvArg) >+ { >+ int rc; >++ >++ /* Refuse to load if mp_maxcpus is wrong */ >++ if (MAXCPU != mp_maxcpus) { >++ printf("vboxdrv: MAXCPU != mp_maxcpus (%d != %d)\n", >++ MAXCPU, mp_maxcpus); >++ return EINVAL; >++ } >++ >+ switch (enmEventType) >+ { >+ case MOD_LOAD: >+@@ -541,8 +550,7 @@ bool VBOXCALL supdrvOSGetForcedAsyncTsc >+ > bool VBOXCALL supdrvOSAreCpusOfflinedOnSuspend(void) > { > - /** @todo verify this. */ >Index: emulators/virtualbox-ose-kmod/Makefile >=================================================================== >--- emulators/virtualbox-ose-kmod/Makefile (revision 466968) >+++ emulators/virtualbox-ose-kmod/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= virtualbox-ose > PORTVERSION= 5.2.8 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= emulators > MASTER_SITES= http://download.virtualbox.org/virtualbox/${PORTVERSION}/ > PKGNAMESUFFIX= -kmod
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 219913
:
192427
|
244203