From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md3ru-0004vX-T9 for qemu-devel@nongnu.org; Mon, 17 Aug 2009 11:11:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md3rp-0004uk-G4 for qemu-devel@nongnu.org; Mon, 17 Aug 2009 11:11:29 -0400 Received: from [199.232.76.173] (port=50970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md3rp-0004uh-Bx for qemu-devel@nongnu.org; Mon, 17 Aug 2009 11:11:25 -0400 Received: from mx20.gnu.org ([199.232.41.8]:63955) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md3rp-0008OO-5k for qemu-devel@nongnu.org; Mon, 17 Aug 2009 11:11:25 -0400 Received: from mail-pz0-f196.google.com ([209.85.222.196]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Md3rn-0005oc-Jo for qemu-devel@nongnu.org; Mon, 17 Aug 2009 11:11:23 -0400 Received: by pzk34 with SMTP id 34so1958135pzk.4 for ; Mon, 17 Aug 2009 08:11:21 -0700 (PDT) Message-ID: <4A89730F.7090206@codemonkey.ws> Date: Mon, 17 Aug 2009 10:11:11 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [HACK] make vmmouse work with KVM References: <20090817144754.GA31553@1und1.de> In-Reply-To: <20090817144754.GA31553@1und1.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Reimar_D=F6ffinger?= Cc: qemu-devel@nongnu.org Reimar Döffinger wrote: > Hello, > vmmouse uses a giant hack: it uses io ports (in instruction) but passes > data via registers. > This currently does not work since the qemu CPU registers are > (understandably) not kept in sync with the real KVM registers for this > operation. > Attached patch detects access to the vmmouse port and loads/stores CPU > registers into/from the QEMU state. > Should use cpu_synchronize_state() in vmport.c > Signed-off-by: Reimar Döffinger > Regards, Anthony Liguori