From owner-freebsd-current@freebsd.org Mon Jul 25 21:17:45 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7D2ABA4715 for ; Mon, 25 Jul 2016 21:17:45 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEAC3129D; Mon, 25 Jul 2016 21:17:45 +0000 (UTC) (envelope-from rwestlun@gmail.com) Received: by mail-it0-x242.google.com with SMTP id f6so8313103ith.2; Mon, 25 Jul 2016 14:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=R8XH8iw9Nqtz6nYCWEDpz0FfrRfgJY6qqqZR1iDThM0=; b=kOjaiuCjGxAdtk9BdPqLt9DboyZBvtU0Hb1Afpg6Odakagc0BJh9EJIGEh8wey1B6r dES/K67Jz4fzXhkjooDU01V83OwbF+or37W834YtS8RJGhxZwm+zmkLJzb3DKUHBWE8j LiLMVty0+KFowl2H+y/IdAjtNSKupEpa7Mf4+sXMilS/nFeHkDZTNGTixCCrCdvrMU8f 1Q32rwtdqjDzkB8dgV1FEE0GsHZbxWwy3d9xkES9NvDIAtS4G3bp5QnnvchMJa+1McZj xc/0t62uyyX9vNBRBbSg1gXL1aE1JyrRY6OZJfGypV69OcnBH0M0k8G63dozAvpT6exs gqFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=R8XH8iw9Nqtz6nYCWEDpz0FfrRfgJY6qqqZR1iDThM0=; b=D+OmTnGpBBvh48biBvNq/ci15naVTPaiv2rk+HwfCm1VMyjPNUOhO+U3Vsi3e2y94j 8YgnFb2+idcS6EbnGPXDIIagf28UsOEN4+Ep2WO8xs3CJdyLOlnc1wvM8OPtds3JvFur F2VwgnbyoiU0svHOV70T9/jrBNgusA0eciBYIx/Thl5VSpVmxFwOimqdT/bGbwtmVcig nWfKh+JHtuzxcuqnUGSpIheMmcic+7lVXDv2EsvQzlurwcHk0yX58ODYoCpCdCa03wQs oSkaXW1Z7nO1T5xBdcaYdhhEDO+foot/8KMUTV3ljDPxiFwKfvq2Tp/v6+0cAA8PLiyR Hq5A== X-Gm-Message-State: AEkoouuS8TSoAHndUSbGOcfz1LanQzmxNb0mvjtTVPyx/P8kb3sK7mi3fi/jJ2pJzwu6Jg== X-Received: by 10.36.67.13 with SMTP id s13mr23260523itb.90.1469481464859; Mon, 25 Jul 2016 14:17:44 -0700 (PDT) Received: from gmail.com (c-98-216-247-110.hsd1.ma.comcast.net. [98.216.247.110]) by smtp.gmail.com with ESMTPSA id b66sm9593656itd.0.2016.07.25.14.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Jul 2016 14:17:44 -0700 (PDT) Date: Mon, 25 Jul 2016 17:17:41 -0400 From: Randy Westlund To: Jung-uk Kim Cc: freebsd-current@freebsd.org Subject: Re: Panic when loading vboxdrv module Message-ID: <20160725211741.GA11099@gmail.com> References: <20160725191314.GA10757@gmail.com> <901dace9-299a-5b3c-dff1-038ed1c192fa@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <901dace9-299a-5b3c-dff1-038ed1c192fa@FreeBSD.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2016 21:17:46 -0000 --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+--