From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 24 11:55:43 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 1357D1065670 for ; Sat, 24 Jan 2009 11:55:43 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 96F528FC18 for ; Sat, 24 Jan 2009 11:55:42 +0000 (UTC) (envelope-from blauwirbel@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so3483054fgb.35 for ; Sat, 24 Jan 2009 03:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=X767rxdKQWbiiwV79jSuTITGNfX82tPJRsQVz/ozKyM=; b=K20dj5utl1KuxjosV9dO6WVgyVTPBJgVhJ9dl9Wt7QnvqrpSwYJ6TdS9I4QXRsTmTf BgwyRnw83CHnjpiH9ByNwStWzoDMy7V+82vpxbrFS34dLjQmlGZXY+SMw5fPVFyEpeky GRR94QX84zo3goEY+agScmP0K9+XSC1z3u78I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Pmsuvjcsx8Mu7MDf51bRdF4A/oYHdK8Wp8yQ9g+blNC6ddVsBsm9iS4L3UWKBSRw3p GPCq/fmFTojwX5uTff+WDohyKrgNwfTiwB9z+Zn+rmod7Omc/JO8QCpYnYzhnqznP9C6 G94mpDi2gs0Tmp+KswEiJfliWCLfhUJtVa4AA= MIME-Version: 1.0 Received: by 10.223.113.3 with SMTP id y3mr895555fap.71.1232798138589; Sat, 24 Jan 2009 03:55:38 -0800 (PST) In-Reply-To: <20090118231436.GA9565@saturn.kn-bremen.de> References: <20090118231436.GA9565@saturn.kn-bremen.de> Date: Sat, 24 Jan 2009 13:55:38 +0200 Message-ID: From: Blue Swirl To: qemu-devel@nongnu.org, freebsd-emulation@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: [Qemu-devel] 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: Sat, 24 Jan 2009 11:55:43 -0000 On 1/19/09, Juergen Lock wrote: > 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... Thanks, applied.