Received: from eggs.gnu.org ([140.186.70.92]:36315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE1yF-0006m1-CH for qemu-devel@nongnu.org; Wed, 12 Oct 2011 12:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE1yE-00038M-0r for qemu-devel@nongnu.org; Wed, 12 Oct 2011 12:47:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE1yD-00038E-Oq for qemu-devel@nongnu.org; Wed, 12 Oct 2011 12:47:53 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9CGlqsK010543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Oct 2011 12:47:52 -0400 Received: from teriyaki.cdg.redhat.com (teriyaki.cdg.redhat.com [10.32.192.15]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9CGlhcB023445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 12 Oct 2011 12:47:51 -0400 Date: Wed, 12 Oct 2011 18:47:43 +0200 From: Christophe Fergeau Message-ID: <20111012164742.GA18741@teriyaki.cdg.redhat.com> References: <20111011183036.GL1049@bow.tlv.redhat.com> <1318437328-16865-1-git-send-email-cfergeau@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <1318437328-16865-1-git-send-email-cfergeau@redhat.com> Subject: Re: [Qemu-devel] [PATCH] ps2: migrate ledstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey, On Wed, Oct 12, 2011 at 06:35:28PM +0200, Christophe Fergeau wrote: > Make the ps2 device track its ledstate so that we can migrate it. > Otherwise it gets lost across migration, and spice-server gets > confused about the actual keyboard state and sends bogus > caps/scroll/num key events. This patch adds a ledstate to the PS2 keyboard driver as an alternative to the original patch. I forgot to mention in the changelog entry that this fixes https://bugzilla.redhat.com/show_bug.cgi?id=729294 One thing that could be improved after this patch is that the ledstate is now present both in spice-input and hw/ps2.c, but I couldn't find an easy way to get the ps2 ledstate from spice-input so I left things this way for now. Christophe --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6VxK4ACgkQJKRp+3pW945u5gCg1Vgl8Bu4KPrAB3umEPNtir3g RsUAoKocPV8DcAT+KOuejX6Y+WhaN/4z =JpSw -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--