From owner-freebsd-current@FreeBSD.ORG Sat Jul 16 20:23:24 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9340416A41C; Sat, 16 Jul 2005 20:23:24 +0000 (GMT) (envelope-from qemu-l@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0467443D4C; Sat, 16 Jul 2005 20:23:22 +0000 (GMT) (envelope-from qemu-l@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id j6GKN8On012001; Sat, 16 Jul 2005 22:23:08 +0200 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id j6GKN8K5011999; Sat, 16 Jul 2005 22:23:08 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j6GKLNE37316; Sat, 16 Jul 2005 22:21:23 +0200 (CEST) From: Juergen Lock Date: Sat, 16 Jul 2005 22:21:23 +0200 To: Norikatsu Shigemura Message-ID: <20050716222122.A36832@saturn.kn-bremen.de> References: <20050704010715.A36404@saturn.kn-bremen.de> <200507040037.j640bg0v085158@gate.bitblocks.com> <200507100439.j6A4dlMK074874@sakura.ninth-nine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200507100439.j6A4dlMK074874@sakura.ninth-nine.com> X-Mailman-Approved-At: Sun, 17 Jul 2005 11:41:46 +0000 Cc: Craig Boston , jhb@FreeBSD.org, jeff@FreeBSD.org, qemu-devel@nongnu.org, alc@FreeBSD.org, freebsd-current@FreeBSD.org, Bakul Shah , Juergen Lock Subject: Re: [Qemu-devel] kqemu freebsd host smp problems? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 16 Jul 2005 20:23:24 -0000 On Sun, Jul 10, 2005 at 01:39:47PM +0900, Norikatsu Shigemura wrote: > On Sun, 03 Jul 2005 17:37:42 -0700 > Bakul Shah wrote: > > 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). > > I confirmed that qemu on latest FreeBSD 6-current got more > stability!!, but more little slowly:-( and a panic:-( too. > > > Now I'm testing improved qemu port: > http://tmp.ninth-nine.com/qemu/qemu.20050708-2.port.tar.bz2 > > 1. Merge /dev/kqemu cloning support to kmod_bsd.c. > Obtained from: http://lists.gnu.org/archive/html/qemu-devel/2005-06/msg00135.html > Submitted by: Craig Boston > > > $ fstat /dev/kqemu* > > USER CMD PID FD MOUNT INUM MODE SZ|DV R/W NAME > > nork qemu 33805 5 /dev 168 crw-rw---- #C:0:0x0 rw /dev/kqemu1 > > root qemu 20779 6 /dev 152 crw-rw---- #C:0:0x0 rw /dev/kqemu0 > In this time, I'm installing Windows XP SP2 and FreeBSD 5.4-R. > > 2. Giant-lock kqemu.ko. > Obtained from: http://lists.gnu.org/archive/html/qemu-devel/2005-07/msg00070.html > Suggested by: Bakul Shah > > 3. Add experimental IDE WDMA support. > Obtained from: I forgot:-( Juergen Keil, iirc > Submitted by(AFAIK): Juergen Lock But as i said this patch has problems with FreeBSD guests with atapicam in the kernel, for example FreeSBIE 1.1 misdetects cd0 as da0 and panics with a zero divide fault. > > 4. Utilize BSDMakefile to compile kqemu.ko, and cosmetic change. > Yeah you could do that... > > I contacted a panic. Please check following message. >... Well, I'll leave that to the kernel hackers :) Juergen