[vbox-dev] [PATCH] VirtualBox on FreeBSD

Alexander Eichner Alexander.Eichner at Sun.COM
Tue May 19 13:58:27 PDT 2009


Hi Shin-ichi,

thanks a lot for the patch. This should explain the crashes when
unloading the kernel module.
I'll apply it shortly. I also forwarded the mail to our vbox developers
mailing list. You should send patches there instead of mailing them to
me privately so that everyone can see and test the patch.
Thanks again!

Kind regards,
Alexander Eichner

Am Dienstag, den 19.05.2009, 23:17 +0900 schrieb Shin-ichi Okano:
> Hi,
> 
> This is a small patch for the following:
> 
> > Known bugs and limitations:
> > - Unloading the kernel driver panics the host
> 
> By this patch, just unloading does not cause kernel panic 
> at least on my environment (7.2-STABLE/i386).
> 
> This patch is under MIT license because I have not signed the SCA.
> 
> Thanks.
> 
>  (patch-src-VBox-HostDrivers-Support-freebsd-SUPDrv-freebsd.c)
> Index: src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c
> ===================================================================
> --- src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c	(revision 19819)
> +++ src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c	(working copy)
> @@ -207,6 +207,8 @@
>      /*
>       * Reserve what we did in VBoxDrvFreeBSDInit.
>       */
> +    EVENTHANDLER_DEREGISTER(dev_clone, g_VBoxDrvFreeBSDEHTag);
> +
>      clone_cleanup(&g_pVBoxDrvFreeBSDClones);
>  
>      supdrvDeleteDevExt(&g_VBoxDrvFreeBSDDevExt);





More information about the vbox-dev mailing list