From owner-freebsd-current@FreeBSD.ORG Sun Jul 15 17:43:54 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 6A98316A400 for ; Sun, 15 Jul 2007 17:43:54 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.freebsd.org (Postfix) with ESMTP id 2940813C461 for ; Sun, 15 Jul 2007 17:43:54 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 5BD559BCE for ; Sun, 15 Jul 2007 19:43:53 +0200 (CEST) Received: from gaupe.stud.ntnu.no (gaupe.stud.ntnu.no [129.241.56.184]) by fri.itea.ntnu.no (Postfix) with ESMTP for ; Sun, 15 Jul 2007 19:43:53 +0200 (CEST) Received: by gaupe.stud.ntnu.no (Postfix, from userid 2312) id 95288D0034; Sun, 15 Jul 2007 19:44:00 +0200 (CEST) Date: Sun, 15 Jul 2007 19:44:00 +0200 From: Ulf Lilleengen To: freebsd-current@freebsd.org Message-ID: <20070715174400.GA10062@stud.ntnu.no> References: <200707131834.27131.h.schmalzbauer@omnisec.de> <4697CCEB.9080707@FreeBSD.org> <200707132155.43783.h.schmalzbauer@omnisec.de> <4698E7C4.9080001@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4698E7C4.9080001@FreeBSD.org> User-Agent: Mutt/1.5.9i X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. 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: Sun, 15 Jul 2007 17:43:54 -0000 On lør, jul 14, 2007 at 05:12:04 +0200, Attilio Rao wrote: > 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... > > 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. > > You should firstly try the canonical case of kernel clean compilation > (so with KSE) and kqemu clean compilation (so without KSE, without the > -DKSE option). > I've tested the patch, and I can confirm that it works with and without KSE now. Also, I didn't have to recompile qemu, just kqemu. -- Ulf Lilleengen