Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2012 22:42:19 -0600
From:      Brandon Gooch <jamesbrandongooch@gmail.com>
To:        freebsd-emulation@freebsd.org
Subject:   [PATCH] VirtualBox 4.1.8 kmod panic with VIMAGE kernel
Message-ID:  <CALBk6yK7=59ZMZ%2BbEurqP_9tDT2OAu4a653N8s2FKKrUTp8L6Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--e89a8fb2048864277e04badc22d4
Content-Type: text/plain; charset=ISO-8859-1

It's my guess that not many people are running VirtualBox on a
VIMAGE-enabled kernel.  However, for those of us who do (just me?),
the attached patch is required to prevent a panic when running
VirtualBox in such an environment. The patch belongs to the
emulators/virtualbox-ose-kmod port.

--- src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c.orig	2011-12-19
07:01:06.000000000 -0600
+++ src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c	2011-12-26
14:54:27.000000000 -0600
@@ -1189,6 +1189,7 @@
 int  vboxNetAdpInit(void)
 {
     unsigned i;
+    PVBOXNETADP pVboxnet0;
     /*
      * Init common members and call OS-specific init.
      */
@@ -1201,7 +1202,8 @@
         vboxNetAdpOsInit(&g_aAdapters[i]);
     }

-    return VINF_SUCCESS;
+    /* Create vboxnet0 */
+    return vboxNetAdpCreate(&pVboxnet0, NULL);
 }

 /**

If there is a more appropriate fix, please help me find it, otherwise,
it would be great to have this committed!

-Brandon

--e89a8fb2048864277e04badc22d4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALBk6yK7=59ZMZ%2BbEurqP_9tDT2OAu4a653N8s2FKKrUTp8L6Q>