Re: [Qemu-devel] kqemu freebsd host smp problems?

From: Juergen Lock <qemu-l_at_jelal.kn-bremen.de>
Date: Sat, 16 Jul 2005 22:21:23 +0200
On Sun, Jul 10, 2005 at 01:39:47PM +0900, Norikatsu Shigemura wrote:
> On Sun, 03 Jul 2005 17:37:42 -0700
> Bakul Shah <bakul_at_BitBlocks.com> 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 <craig_at_xfoil.gank.org>
> 
> 	> $ 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 <bakul_at_BitBlocks.com>
> 
> 	3. Add experimental IDE WDMA support.
> 	   Obtained from:	I forgot:-(

Juergen Keil, iirc

> 	   Submitted by(AFAIK):	Juergen Lock <qemu-l_at_jelal.kn-bremen.de>

 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
Received on Sat Jul 16 2005 - 18:23:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC