From owner-freebsd-emulation@FreeBSD.ORG Sun Jan 18 23:34:59 2009 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 9428B1065675 for ; Sun, 18 Jan 2009 23:34:59 +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 4E3498FC08 for ; Sun, 18 Jan 2009 23:34:58 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id AA524191D66; Mon, 19 Jan 2009 00:34:56 +0100 (CET) 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 n0INEbj3009920; Mon, 19 Jan 2009 00:14:37 +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 n0INEaOY009919; Mon, 19 Jan 2009 00:14:36 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Mon, 19 Jan 2009 00:14:36 +0100 To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org Message-ID: <20090118231436.GA9565@saturn.kn-bremen.de> Mail-Followup-To: qemu-devel@nongnu.org, freebsd-emulation@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: testing qemu svn r6367 on FreeBSD - sigev_signo; vmmouse, -vga vmware broken, slirp... 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, 18 Jan 2009 23:34:59 -0000 Hi! I've made another experimental FreeBSD qemu-devel port update, http://people.freebsd.org/~nox/qemu/qemu-devel-20090118.patch and of the few things I've tested so far I only found vmmouse and -vga vmware broken now, vmmouse leaves the mouse cursor stuck in the top left corner, and -vga vmware causes a broken display at least with xorg's vmware driver. (both of these worked at least with the r6082, 2008-12-18 snapshot as posted in http://lists.gnu.org/archive/html/qemu-devel/2008-12/msg01417.html ) virtio and hpet still seem to work, and slirp indeed seems to finally work on amd64 hosts. FreeBSD has a #define sigev_signo __sigev_u.__sigev_signo in so I've had to patch it to something different in the posix-aio-compat code: Index: qemu/posix-aio-compat.h @@ -29,7 +29,7 @@ int aio_fildes; void *aio_buf; size_t aio_nbytes; - int sigev_signo; + int ev_signo; off_t aio_offset; /* private */ Index: qemu/posix-aio-compat.c @@ -94,7 +94,7 @@ idle_threads++; pthread_mutex_unlock(&lock); - kill(getpid(), aiocb->sigev_signo); + kill(getpid(), aiocb->ev_signo); } idle_threads--; Index: qemu/block-raw-posix.c @@ -579,7 +579,7 @@ if (!acb) return NULL; acb->aiocb.aio_fildes = s->fd; - acb->aiocb.sigev_signo = SIGUSR2; + acb->aiocb.ev_signo = SIGUSR2; acb->aiocb.aio_buf = buf; if (nb_sectors < 0) acb->aiocb.aio_nbytes = -nb_sectors; More tests welcome... Enjoy, Juergen