Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iesaj-0007Pu-Na for qemu-devel@nongnu.org; Mon, 08 Oct 2007 09:24:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iesaf-0007FX-Ng for qemu-devel@nongnu.org; Mon, 08 Oct 2007 09:24:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iesaf-0007FD-K6 for qemu-devel@nongnu.org; Mon, 08 Oct 2007 09:24:09 -0400 Received: from il.qumranet.com ([82.166.9.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iesaf-0007gU-3T for qemu-devel@nongnu.org; Mon, 08 Oct 2007 09:24:09 -0400 Date: Mon, 8 Oct 2007 15:23:06 +0200 From: Dan Kenigsberg Subject: Re: [Qemu-devel] vmmouse with Fedora-6 64bit guest Message-ID: <20071008132305.GA8786@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46F91183.4010805@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: qemu-devel@nongnu.org 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. 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 13:11:45 -0000 @@ -55,7 +55,7 @@ static uint32_t vmport_ioport_read(void target_ulong eax; eax = s->env->regs[R_EAX]; - if (eax != VMPORT_MAGIC) + if ((uint32_t)eax != VMPORT_MAGIC) return eax; command = s->env->regs[R_ECX];