Received: from [140.186.70.92] (port=45516 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Ovq-0004L6-Im for qemu-devel@nongnu.org; Wed, 23 Mar 2011 10:21:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2Ovk-0006lc-8G for qemu-devel@nongnu.org; Wed, 23 Mar 2011 10:21:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2Ovj-0006lQ-Ve for qemu-devel@nongnu.org; Wed, 23 Mar 2011 10:21:00 -0400 From: Juan Quintela In-Reply-To: (Peter Maydell's message of "Wed, 23 Mar 2011 10:22:24 +0000") References: <1300839376-22520-1-git-send-email-aliguori@us.ibm.com> <1300839376-22520-12-git-send-email-aliguori@us.ibm.com> Date: Wed, 23 Mar 2011 15:19:17 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH 11/11] test-vmstate: add test case to verify we don't change VMState Reply-To: quintela@redhat.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Jan Kiszka , Anthony Liguori , qemu-devel@nongnu.org Peter Maydell wrote: > On 23 March 2011 00:16, Anthony Liguori wrote: >> + =C2=A0 =C2=A0if (old_version !=3D new_version) { >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0g_error("Version %d of device `%s' is avail= able in QEMU, but schema still reports %d, please update schema.\n", >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0new_version, de= vice, old_version); >> + =C2=A0 =C2=A0} > > Might be nice for these "please update" error messages to > include a pointer to a docs file explaining in more detail > how to do that? > (also >80 char line ;-)) > >> diff --git a/vmstate/schema.json b/vmstate/schema.json >> new file mode 100644 >> index 0000000..23483ab >> --- /dev/null >> +++ b/vmstate/schema.json >> @@ -0,0 +1,1176 @@ >> +{ >> + =C2=A0 =C2=A0"cpu": { >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0"mcg_cap": "uint64", >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0"a20_mask": "int32", >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0"tsc_offset": "uint64", > > This schema file appears to be board-specific (or at least > x86-specific) -- shouldn't the cpu/board/whatever name > be in the filename, so we have scope to expand the test > to checking migration issues for other platforms too? > > (I don't care much about ARM migration breakages just at the > moment but I suspect that it will be becoming more important > by this time next year...) > > Also since this looks like an autogenerated file that's going > to be going into version control maybe it should have a > comment header at the top of the "autogenerated, do not edit > by hand!" type. I agree with you. Just passing another argument to all programs telling what we are talking about would be much better for this. And we need (at least) x86_64 & i386 (this ones are supposed to work). ARM people are sending lots of vmstate changes, I guess/hope that somebody is trying to get it working. /me looks at Peter O:-), hint, hint, ... Any idea if there are images for testing ARM? Later, Juan.