From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 22 15:13:43 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 7B408106566B for ; Sat, 22 Mar 2008 15:13:43 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id F09038FC1F for ; Sat, 22 Mar 2008 15:13:42 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id m2MFDTvI058808; Sat, 22 Mar 2008 16:13:41 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id m2MFDTXx058806; Sat, 22 Mar 2008 16:13:29 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <200803221513.m2MFDTXx058806@lurza.secnetix.de> To: nox@jelal.kn-bremen.de (Juergen Lock) Date: Sat, 22 Mar 2008 16:13:29 +0100 (CET) In-Reply-To: <200803202015.m2KKFTBX080186@saturn.kn-bremen.de> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Sat, 22 Mar 2008 16:13:41 +0100 (CET) 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: Sat, 22 Mar 2008 15:13:43 -0000 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. > 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. But the message is perfectly fine. It would have saved me quite some time. Thanks! Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd C++: "an octopus made by nailing extra legs onto a dog" -- Steve Taylor, 1998