Received: from eggs.gnu.org ([140.186.70.92]:41379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFk9Y-0007Kc-A9 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 06:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFk9W-00053k-LI for qemu-devel@nongnu.org; Mon, 17 Oct 2011 06:10:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFk9V-000535-V5 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 06:10:38 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9HAAaR6022947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Oct 2011 06:10:36 -0400 Date: Mon, 17 Oct 2011 12:10:29 +0200 From: Christophe Fergeau Message-ID: <20111017101029.GB14591@teriyaki.redhat.com> References: <1318439877-26376-1-git-send-email-cfergeau@redhat.com> <1318607068-17700-1-git-send-email-cfergeau@redhat.com> <4E9BF496.3000908@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <4E9BF496.3000908@redhat.com> Subject: Re: [Qemu-devel] [PATCHv3] ps2: migrate ledstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Juan Quintela --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 17, 2011 at 11:25:42AM +0200, Gerd Hoffmann wrote: > > > > static const VMStateDescription vmstate_ps2_common =3D { > > .name =3D "PS2 Common State", > >- .version_id =3D 3, > >+ .version_id =3D 4, > > .minimum_version_id =3D 2, > > .minimum_version_id_old =3D 2, > > .fields =3D (VMStateField []) { >=20 > version_id in vmstate_ps2_keyboard must be updated too. Yeah, I somehow updated the field in the wrong struct, /me blushes and hides. I don't think this struct version needs to be updated. > The version update in vmstate_ps2_common might not be needed, IIRC > the versions for stuff referenced via VMSTATE_STRUCT() isn't used > anyway, Juan? Ah, ok, I hoped it would help to handle migration between versions with and without this field, I guess I was too optimistic :) Thanks, Christophe --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk6b/xUACgkQJKRp+3pW947EHgCg3kNAjkKLWWU95Jr6HleB7fZH l0IAn1rbqPziPeC9ITQxd6C1AW2+R+5D =5TiM -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig--