From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 25 20:26:07 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 6BDD11065686 for ; Thu, 25 Sep 2008 20:26:07 +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 6DCBB8FC1A for ; Thu, 25 Sep 2008 20:26:06 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 1CE58191A54; Thu, 25 Sep 2008 22:26:04 +0200 (CEST) Received: from saturn.kn-bremen.de (noident@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.14.2/8.13.8) with ESMTP id m8PKH4Gn012175; Thu, 25 Sep 2008 22:17:04 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.14.2/8.13.6/Submit) id m8PKH4Lh012174; Thu, 25 Sep 2008 22:17:04 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Thu, 25 Sep 2008 22:17:03 +0200 To: Juergen Lock Message-ID: <20080925201703.GA12142@saturn.kn-bremen.de> Mail-Followup-To: Juergen Lock , qemu-devel@nongnu.org, freebsd-emulation@freebsd.org References: <20080921204025.GA81055@saturn.kn-bremen.de> <200809242210.m8OMAcSZ021572@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200809242210.m8OMAcSZ021572@saturn.kn-bremen.de> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-emulation@freebsd.org, qemu-devel@nongnu.org Subject: [PATCH] preprocessor issue in qemu/patch-block-raw-posix.c (was: qemu svn r5281 on FreeBSD - slow usb, vmwarevga, screen updates... (now updated to r5313)) 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: Thu, 25 Sep 2008 20:26:07 -0000 On Thu, Sep 25, 2008 at 12:10:39AM +0200, Juergen Lock wrote: > In article you write: > >On Sun, Sep 21, 2008 at 3:40 PM, Juergen Lock wrote: > >> Hi! > >> > >> I've been playing with qemu svn on FreeBSD again (new experimental > >> emulators/qemu-devel port update here: > >> http://people.freebsd.org/~nox/qemu/qemu-devel-20080921.patch > >> ), and want to note a few things: > > > >Hi. I've built an updated port with your patch and it compiles fine > >and runs my WinXP guests well. But, the qemu process consumes 100% of > >one CPU core on the host the whole time it is running, regardless of > >what the guest is doing. The host is a 7-STABLE box from 8/19. The > >guests run with bridged networking and full kernel kqemu accel > >enabled. > > > Hmm. And you didn't see this with the version in ports? Have you > checked if this is related to kqemu? (try without -kernel-kqemu and > also with -no-kqemu.) Also, which threading libs and scheduler are you > using? There seems to be an issue with kse, tho I doubt you are using > that on 7-stable... > > Here is another experimental update that forces -lthr on 6.x, and > also updates to qemu svn r5313: > http://people.freebsd.org/~nox/qemu/qemu-devel-20080924.patch I forgot to note that this also needed the following patch: Index: qemu/block-raw-posix.c @@ -545,7 +545,8 @@ qemu_aio_set_fd_handler(s->fd, posix_aio_read, NULL, posix_aio_flush, s); -#if defined(__linux__) && defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 4) +#if defined(__linux__) && defined(__GLIBC_PREREQ) +#if !__GLIBC_PREREQ(2, 4) { /* XXX: aio thread exit seems to hang on RedHat 9 and this init seems to fix the problem. */ @@ -557,6 +558,7 @@ aio_init(&ai); } #endif +#endif posix_aio_state = s; return 0; Signed-off-by: Juergen Lock