From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 23 22:11:01 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05DB8106566C for ; Sun, 23 Mar 2008 22:11:01 +0000 (UTC) (envelope-from nox@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 71E168FC18 for ; Sun, 23 Mar 2008 22:11:00 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 9CF7F2AAB5B; Sun, 23 Mar 2008 23:10:58 +0100 (CET) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m2NLjTqS063085; Sun, 23 Mar 2008 22:45:29 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m2NLjShK063084; Sun, 23 Mar 2008 22:45:28 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sun, 23 Mar 2008 22:45:28 +0100 To: Oliver Fromme Message-ID: <20080323214528.GB62472@saturn.kn-bremen.de> Mail-Followup-To: Oliver Fromme , freebsd-emulation@freebsd.org References: <200803202015.m2KKFTBX080186@saturn.kn-bremen.de> <200803221513.m2MFDTXx058806@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200803221513.m2MFDTXx058806@lurza.secnetix.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-emulation@freebsd.org Subject: Re: qemu coredumps on RELENG_7 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2008 22:11:01 -0000 On Sat, Mar 22, 2008 at 04:13:29PM +0100, Oliver Fromme wrote: > > Juergen Lock wrote: > > Oliver Fromme wrote: > > > D Hill wrote: > > > > Rick C. Petty wrote: > > > > > Oliver Fromme wrote: > > > > > > Kostik Belousov wrote: > > > > > > > > > > > > > > Definitely, > > > > > > > kldload aio > > > > > > > before running qemu. > > > > > > > > > > > > Thank you, that seems to solve the problem indeed. > > > > > > Is that documented somewhere? It's not in the manpage. > > > > > > I think it should be in the manpage ... would have > > > > > > saved me quite some time. > > > > > > > Actually it is also documented in the pkg-message of the port(s), but > > apparently nobody reads that... > > How are you supposed to read it when you install a bunch > of ports in batch mode, i.e. unattended (for example, > over night or during lunch break)? > > Therefore I think that pkg-message is _not_ the correct > place for critical ionformation like that. > > > (OK I could patch a pointer to that > > into the manpage, do other ports do that?) > > There are several ports that patch port-specific things > into the manpage. Prominent examples are gzip, jpeg, > bash, cdrtools and openssh-portable. > Alright, so how about the following: Index: qemu/qemu-doc.texi @@ -985,7 +985,8 @@ @c man begin SEEALSO The HTML documentation of QEMU for more precise information and Linux -user mode emulator invocation. +user mode emulator invocation, as well as the FreeBSD host notes in +@file{pkg-message} in the relevant qemu port directory. @c man end @c man begin AUTHOR > > Anyway, this was easier than I thought: (it didn't occur to me that > > modfind(2) also finds modules that are statically linked into the kernel...) > > > > Index: qemu/vl.c > > @@ -8423,6 +8423,12 @@ > > nb_nics = 0; > > /* default mac address of the first network interface */ > > > > +#ifdef __FreeBSD__ > > + loadmodules(0, "aio", NULL); > > + if (modfind("aio") == -1) > > + fprintf(stderr, "warning: aio not (kld)loaded, may cause `Invalid system call' traps on disk IO\n"); > > +#endif > > I prefer it didn't try to load the module itself. That's > a decision I want to make myself. Yeah I removed the load attempt. > But the message is > perfectly fine. It would have saved me quite some time. > > Thanks! > > Best regards > Oliver You're welcome, Juergen