Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IeugQ-0003gB-99 for qemu-devel@nongnu.org; Mon, 08 Oct 2007 11:38:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IeugO-0003e6-PT for qemu-devel@nongnu.org; Mon, 08 Oct 2007 11:38:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IeugO-0003dx-GR for qemu-devel@nongnu.org; Mon, 08 Oct 2007 11:38:12 -0400 Received: from il.qumranet.com ([82.166.9.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IeugO-0003zZ-3a for qemu-devel@nongnu.org; Mon, 08 Oct 2007 11:38:12 -0400 Date: Mon, 8 Oct 2007 17:37:12 +0200 From: Dan Kenigsberg Subject: Re: [Qemu-devel] vmmouse with Fedora-6 64bit guest Message-ID: <20071008153638.GA10282@karma.qumranet.com> References: <20070920133626.GA9380@karma.qumranet.com> <20070920134132.GA19029@redhat.com> <20070925120356.GA4727@karma.qumranet.com> <20070925122941.GB4727@karma.qumranet.com> <46F9108A.3040307@qumranet.com> <46F91183.4010805@codemonkey.ws> <20071008132305.GA8786@karma.qumranet.com> <470A44E9.8040104@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <470A44E9.8040104@codemonkey.ws> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On Mon, Oct 08, 2007 at 09:55:37AM -0500, Anthony Liguori wrote: > Dan Kenigsberg wrote: > >In X's vmmouse_drv, the magic number is defined as uint32_t. Therefore > >the top half of the 64 bit ax register is garbage that should be > >ignored. This makes fc6 guest's vmmouse work. > > > > > > I think a better fix would be to change eax from target_ulong to uint32_t. > I don't really mind that. ================ Index: hw/vmport.c =================================================================== RCS file: /sources/qemu/qemu/hw/vmport.c,v retrieving revision 1.1 diff -u -p -r1.1 vmport.c --- hw/vmport.c 26 Aug 2007 17:48:12 -0000 1.1 +++ hw/vmport.c 8 Oct 2007 15:24:50 -0000 @@ -52,7 +52,7 @@ static uint32_t vmport_ioport_read(void { VMPortState *s = opaque; unsigned char command; - target_ulong eax; + uint32_t eax; eax = s->env->regs[R_EAX]; if (eax != VMPORT_MAGIC)