Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpFEe-000327-QN for qemu-devel@nongnu.org; Sun, 03 Jul 2005 20:54:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpFEZ-0002zR-58 for qemu-devel@nongnu.org; Sun, 03 Jul 2005 20:54:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpFEZ-0002tp-0k for qemu-devel@nongnu.org; Sun, 03 Jul 2005 20:54:51 -0400 Received: from [209.204.185.216] (helo=gate.bitblocks.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DpF3g-0006R0-Ie for qemu-devel@nongnu.org; Sun, 03 Jul 2005 20:43:36 -0400 Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.3/8.13.1) with ESMTP id j640bg0v085158 for ; Sun, 3 Jul 2005 17:37:42 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200507040037.j640bg0v085158@gate.bitblocks.com> Subject: Re: [Qemu-devel] kqemu freebsd host smp problems? In-reply-to: Your message of "Mon, 04 Jul 2005 01:07:16 +0200." <20050704010715.A36404@saturn.kn-bremen.de> Date: Sun, 03 Jul 2005 17:37:42 -0700 From: Bakul Shah Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Lock writes: > Is kqemu and the freebsd wrapper smp aware? I just saw this panic > report again, > http://lists.freebsd.org/pipermail/freebsd-current/2005-May/050161.html > and noticed it apparently happened with an smp kernel. My guess is .d_flags = D_NEEDGIANT, needs to be added to the initializer of kqemu_cdevsw for the freebsd-current case. AFAIK this flag ensures only one thread can be in this driver at a time (but caveat emptor: I don't play in the kernel these days).