From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmTKF-0006r7-2g for qemu-devel@nongnu.org; Sat, 12 Sep 2009 10:11:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmTKA-0006q2-K6 for qemu-devel@nongnu.org; Sat, 12 Sep 2009 10:11:38 -0400 Received: from [199.232.76.173] (port=43440 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmTKA-0006pz-Hj for qemu-devel@nongnu.org; Sat, 12 Sep 2009 10:11:34 -0400 Received: from mail.gmx.net ([213.165.64.20]:47213) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MmTKA-0006Ep-0c for qemu-devel@nongnu.org; Sat, 12 Sep 2009 10:11:34 -0400 Date: Sat, 12 Sep 2009 16:11:28 +0200 From: =?iso-8859-1?B?PT9VVEYtOD9xP1JlaW1hcj0yMEQ9QzM9QjZmZmluZ2VyPz0=?= Message-ID: <20090912141128.GA15236@1und1.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] Unlike real hardware, vmport needs access to the CPU registers to handle iomem read and writes. So add an explicit cpu_synchronize_state call, otherwise vmmouse can not work with KVM. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Reimar Döffinger --- hw/vmport.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/vmport.c b/hw/vmport.c index 884af3f..9a942ee 100644 --- a/hw/vmport.c +++ b/hw/vmport.c @@ -25,6 +25,7 @@ #include "isa.h" #include "pc.h" #include "sysemu.h" +#include "kvm.h" //#define VMPORT_DEBUG @@ -58,6 +59,7 @@ static uint32_t vmport_ioport_read(void *opaque, uint32_t addr) unsigned char command; uint32_t eax; + cpu_synchronize_state(env); eax = env->regs[R_EAX]; if (eax != VMPORT_MAGIC) return eax; -- 1.6.4.2