From owner-freebsd-current@FreeBSD.ORG Wed Jul 18 00:15:06 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4FBA16A401 for ; Wed, 18 Jul 2007 00:15:06 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from host.omnisec.de (host.omnisec.de [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 16E6913C4BA for ; Wed, 18 Jul 2007 00:15:05 +0000 (UTC) (envelope-from h.schmalzbauer@omnisec.de) Received: from tek.flintsbach.schmalzbauer.de (tek.flintsbach.schmalzbauer.de [172.21.2.3]) by host.omnisec.de (8.13.8/8.13.8) with ESMTP id l6I0ARot096642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Jul 2007 02:10:33 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) Received: from titan.flintsbach.schmalzbauer.de (titan.flintsbach.schmalzbauer.de [IPv6:fec0::1:0:0:1:1]) by tek.flintsbach.schmalzbauer.de (8.13.8/8.13.8) with ESMTP id l6I0ExoU000164 for ; Wed, 18 Jul 2007 02:14:59 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) Received: by titan.flintsbach.schmalzbauer.de (8.14.1/8.14.1/Submit) id l6I0ARqK001852 for freebsd-current@freebsd.org; Wed, 18 Jul 2007 02:10:27 +0200 (CEST) (envelope-from h.schmalzbauer@omnisec.de) From: Harald Schmalzbauer Organization: OmniSEC To: freebsd-current@freebsd.org User-Agent: KMail/1.9.6 References: <200707131834.27131.h.schmalzbauer@omnisec.de> <200707132155.43783.h.schmalzbauer@omnisec.de> <4698E7C4.9080001@FreeBSD.org> In-Reply-To: <4698E7C4.9080001@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline X-Length: 2418 X-UID: 7197 Date: Wed, 18 Jul 2007 02:10:26 +0200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200707180210.27097.h.schmalzbauer@omnisec.de> Subject: Re: kqemu crash (page fault) with -current 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: Wed, 18 Jul 2007 00:15:06 -0000 Am Samstag, 14. Juli 2007 schrieb Attilio Rao: > Harald Schmalzbauer wrote: > > Am Freitag, 13. Juli 2007 schrieb Attilio Rao: > >> Harald Schmalzbauer wrote: > >>> Hello, > >>> > >>> today I tried qemu for the first time and I love it. > >>> Now I'd need some speed and tried kqemu, but it immediately reboots my > >>> machine. > >>> Here is what I could transcribe: > >> > >> Could you please try this patch and see if it helps?: > >> http://people.freebsd.org/~attilio/kqemu.diff > > > > I applied it, rebuilt my kernel and kqemu, but machine crashes immedately > > after running qemu (without disabled kqemu). > > Should I also rebuild qemu itself? I don't think it's needed. > > But CFLAGS+= -DKSE helped! > > I could install various OS, only when I enable -kernel-kqemu most > > installer quit with page fault. > > Hello Harry, > could you please download again the patch and try again? > It seems I missed a bit... Sorry, haven't had any time yet, but now I could do a quick test. Looks good so far, no more panic with a nativ kqemu. > And, please, compile again qemu any time beacause I'm not sure how much > are exposed to userland "struct thread" and "struct proc", for this > problem. I compiled a -current kernel from today (with your new patch), recompiled kqemu and also qemu. But I can't guarantee the kernel module is used. My feeling ist that it's much slower than with my last tests (on that test setup I had always disabled all -current debuging (witness, malloc aj etc)) But it's just a "feeling", no values taken. Lack of time... Thank you very much for your help! best regards, -Harry