From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 10 05:06:44 2012 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF97D106566B for ; Sat, 10 Mar 2012 05:06:44 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C9538FC0A for ; Sat, 10 Mar 2012 05:06:44 +0000 (UTC) Received: by yhgm50 with SMTP id m50so1638450yhg.13 for ; Fri, 09 Mar 2012 21:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=tSHejxS/w2n5UZFAf+bWQzMxdgfU+8vEPcUXn6HALys=; b=BZgSXP+HVlOH92FMVg9w3WBesWlf6CDoLWlXTJA33DBp5nhLQJ9gne/Pv96tpwTMPE 79QeUYXUzx0VW+5sxuQJjN+HGX2udy1zaG6ZY6gS/WejYCF3zQFKl9Z43AjUm/ouXaLX uUAEf9ZzsZeTE3P5DjVGTwlXSjyReYr3YOgKNT/o90eiOGRVhqkLfMSUyL2VXc3ZS1gb bEIZYYNZSvA0v9n8fXNNRWcPjYCIXdRITjeYhjAJcjZ4gjuSh3Q9vDx/l/+muvMPF1RX yHYSxnio1vKDJRMNpeBSEuuVtW0RvCcUNTfVmQcQeVtBAU6FoykqqNgF/Zk1IMdxDSrT WeDg== MIME-Version: 1.0 Received: by 10.60.10.40 with SMTP id f8mr1797492oeb.14.1331354539402; Fri, 09 Mar 2012 20:42:19 -0800 (PST) Received: by 10.60.17.10 with HTTP; Fri, 9 Mar 2012 20:42:19 -0800 (PST) Date: Fri, 9 Mar 2012 22:42:19 -0600 Message-ID: From: Brandon Gooch To: freebsd-emulation@freebsd.org Content-Type: multipart/mixed; boundary=e89a8fb2048864277e04badc22d4 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: [PATCH] VirtualBox 4.1.8 kmod panic with VIMAGE kernel X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2012 05:06:44 -0000 --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--