From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe4jo-0001Hf-RE for qemu-devel@nongnu.org; Wed, 28 Jul 2010 07:23:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe4jn-0002yE-6o for qemu-devel@nongnu.org; Wed, 28 Jul 2010 07:23:52 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:59607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe4jn-0002xy-4n for qemu-devel@nongnu.org; Wed, 28 Jul 2010 07:23:51 -0400 Received: by qwi4 with SMTP id 4so890078qwi.4 for ; Wed, 28 Jul 2010 04:23:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 28 Jul 2010 19:23:50 +0800 Message-ID: From: TeLeMan Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH] vmstate: fix vmstate_subsection_load List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: qemu-devel On Wed, Jul 28, 2010 at 18:43, Juan Quintela wrote: > TeLeMan wrote: >> =C2=A0If the new version adds the new subsection for some vmstate, the o= ld >> version will load the new version's vmstate unsuccessfully. So we have >> to ignore the unrecognized subsections. > > No. =C2=A0That was the whole point of subsections. =C2=A0If one subsectio= n is > sent, target machine has to understand it. =C2=A0If it don't understand i= t, > it fails. > > If subsection is not needed, it is the responsability of the source to > not send it. > > This was one of the design requirements. =C2=A0Subsections are optional b= ut > it is the source which decides which ones to send/not to send. =C2=A0The > target has to understand everything that it gets or fail the migration. > If the target must understand everything, the vmstate's version will be useless because the old version target maybe cannot load the new version target's vmstate.