Date: Thu, 20 Mar 2008 22:28:52 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Juergen Lock <nox@jelal.kn-bremen.de> Cc: freebsd-emulation@freebsd.org, olli@lurza.secnetix.de Subject: Re: qemu coredumps on RELENG_7 Message-ID: <20080320202852.GR10374@deviant.kiev.zoral.com.ua> In-Reply-To: <200803202015.m2KKFTBX080186@saturn.kn-bremen.de> References: <alpine.BSF.1.00.0803171507450.23872@duane.dbq.yournetplus.com> <200803202015.m2KKFTBX080186@saturn.kn-bremen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--F3mDA9xuPwJBqvPm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 20, 2008 at 09:15:29PM +0100, Juergen Lock wrote: > In article <200803181152.m2IBq0Ih012824@lurza.secnetix.de> you write: > >D Hill <d.hill@yournetplus.com> wrote: > > > Rick C. Petty wrote: > > > > Oliver Fromme wrote: > > > > > Kostik Belousov wrote: > > > > > >=20 > > > > > > Definitely, > > > > > > kldload aio > > > > > > before running qemu. > > > > >=20 > > > > > 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. > > > >=20 > Actually it is also documented in the pkg-message of the port(s), but > apparently nobody reads that... (OK I could patch a pointer to that > into the manpage, do other ports do that?) >=20 > > > > Nope. It should be, or at least qemu should fail to start or at le= ast > > > > print a message instead of just randomly failing. > > > >Definitely. > > > > > > I ran into the same problem and only after spending hours trying to= get it > > > > to work did I remember to kldload aio. > > >=20 > > > I don't know if this applies. However, I found this in=20 > > > /usr/ports/UPDATING: > > >=20 > > > 20070206: > > > >It applies, but I think someone who installs qemu now > >isn't supposed to read UPDATING all the way back to > >February 2007. In fact, for fresh installs you should > >not have to read UPDATING _at_ _all_. > > > >Important information like this should be in the manual > >page, and -- as Rick pointed out -- the failure mode is > >pathetic. It should print a useful error message right > >at the start instead of randomly failing later. >=20 > 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.= ..) >=20 > Index: qemu/vl.c > @@ -8423,6 +8423,12 @@ > nb_nics =3D 0; > /* default mac address of the first network interface */ > =20 > +#ifdef __FreeBSD__ > + loadmodules(0, "aio", NULL); > + if (modfind("aio") =3D=3D -1) > + fprintf(stderr, "warning: aio not (kld)loaded, may cause `Invali= d system call' traps on disk IO\n"); > +#endif > + > optind =3D 1; > for(;;) { > if (optind >=3D argc) >=20 > Would everybody be satisfied with this now? :) > Juergen Me not :). Better print the message without the module load attempt. --F3mDA9xuPwJBqvPm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfiyQMACgkQC3+MBN1Mb4iGoQCgzCXhS/MMAJoK/A/iG0zddXyf y3cAoJbnV7oPpvphuA9wCQqD5i7ujmOe =nY6Z -----END PGP SIGNATURE----- --F3mDA9xuPwJBqvPm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080320202852.GR10374>