Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2016 17:17:41 -0400
From:      Randy Westlund <rwestlun@gmail.com>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Panic when loading vboxdrv module
Message-ID:  <20160725211741.GA11099@gmail.com>
In-Reply-To: <901dace9-299a-5b3c-dff1-038ed1c192fa@FreeBSD.org>
References:  <20160725191314.GA10757@gmail.com> <901dace9-299a-5b3c-dff1-038ed1c192fa@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--mYCpIKhGyMATD0i+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 25, 2016 at 04:09:58PM -0400, Jung-uk Kim wrote:
> If you feel adventurous, please drop the attached patch in
> *emulators/virtualbox-ose/files* directory, and rebuild
> *emulators/virtualbox-ose-kmod*.
>=20
> JK
>=20
> * Note the patch directory is emulators/virtualbox-ose/files, not
> emulators/virtualbox-ose-kmod/files.

> --- src/VBox/HostDrivers/Support/SUPDrvInternal.h.orig	2016-07-18 11:56:1=
9 UTC
> +++ src/VBox/HostDrivers/Support/SUPDrvInternal.h
> @@ -235,7 +235,7 @@
>  # define SUPDRV_WITHOUT_MSR_PROBER
>  #endif
> =20
> -#if 1
> +#if 0
>  /** @def SUPDRV_USE_TSC_DELTA_THREAD
>   * Use a dedicated kernel thread to service TSC-delta measurement reques=
ts.
>   * @todo Test on servers with many CPUs and sockets. */

With the patch, vboxdrv loads successfully.  But when I start a VM, I
get the following panic (after rebuilding virtualbox-ose as well):

> vboxdrv: ffffffff82973020 VMMR0.r0
> vboxdrv: ffffffff82a92020 VBoxDDR0.r0
> vboxdrv: ffffffff82aaf020 VBoxDD2R0.r0
> panic: _mtx_lock_sleep: recursed on non-recursive mutex aiomtx @ /usr/src=
/sys/kern/vfs_aio.c:996
>=20
> cpuid =3D 1
> KBD: stack backtrace:
> db_trace_wrapper() at db_trace_wrapper+0x2b
> vpanic() at vpanic+0x182
> kassert_panic() at kassert_panic+0x126
> __mtx_lock_sleep() at __mtx_lock_sleep+0x228
> __mtx_lock_flags() at __mtx_lock_flags+0x10d
> aio_queue() at aio_queue+0x9d6
> amd64_syscall() at amd64_syscall+0x2db
> Xfast_syscall() at Xfast_syscall+0xfb
> --- syscall (465, FreeBSD ELF64, sys_aio_fsync), rip =3D 0x80119fa0a, rsp=
 =3D 0x7fffdf2abc98, rbp =3D 0x7fffdf2abcd0 ---
> KDB: enter: panic
> [ thread pid 14588 tid 101813 ]
> Stopped at      kdb_enter+0x3b: movq    $0,kdb_why




--mYCpIKhGyMATD0i+
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXloH1AAoJEGaweXjzNsmpJWkH/j9oaIrzjmPha8o3/qwXFtM3
lrQ2b+nLOAAefgHB8RP/bi6+uYakUlqfWJD7NvwnGtcpc+2mhJUEDWOVZ0Q4rB9V
gTan4Q6mFtziHQddVyFXC9bsBCwiUNp6U22DT5DWNdiBZbG4+FgWlEOrEu8hS1Xx
RpFTULVq45B5CLazsi+hc+NyACi//gLTMBvRvEuqX6YVbA60UM+WyofcRxKzY9jR
b7+IL6mT4+AIaydQLyJVEplSV8azTOUkVN9H9PnpCpWEFH/OERjGQzkwZaBR54Nr
rZFp/sZpT8V8bm6DoTuAFLZY9R2GHVT2GC9/Fb5FY7DMkrFzKLeVGV+IuVr4BjQ=
=2XJU
-----END PGP SIGNATURE-----

--mYCpIKhGyMATD0i+--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160725211741.GA11099>