Received: from eggs.gnu.org ([140.186.70.92]:32816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB9pk-0000WS-5S for qemu-devel@nongnu.org; Tue, 04 Oct 2011 14:35:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RB9pc-0001Ep-2P for qemu-devel@nongnu.org; Tue, 04 Oct 2011 14:35:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RB9pb-0001EE-Pt for qemu-devel@nongnu.org; Tue, 04 Oct 2011 14:35:08 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p94IZ70W000927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 4 Oct 2011 14:35:07 -0400 From: Juan Quintela In-Reply-To: <4E8B4E59.9030607@redhat.com> (Avi Kivity's message of "Tue, 04 Oct 2011 20:20:09 +0200") References: <4E8B4E59.9030607@redhat.com> Date: Tue, 04 Oct 2011 20:35:00 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 0/4] migration: Improve subsections detection Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: pbonzini@redhat.com, qemu-devel@nongnu.org Avi Kivity wrote: > On 10/04/2011 04:38 PM, Juan Quintela wrote: >> Hi >> >> This series move the subsections detection code form: >> - Look that it starts form 5 >> To: >> - Look that it starts form 5 (SUBSECTION) >> - Look at the length >> - Look that length is bigger than section name >> - Look at the idstr and see that it starts with the subsection name. >> >> Please review. >> > > The original intent with subsections was to register them as a new > vmstate section, with just a name relationship. > > Can we rename .subsections to .old_and_semi_broken_subsections, and > introduce a new .subsections field that works properly in all cases? Not easily. We can try to do something, but the problem is that subsection are just that "sub", and we should have to be very careful with post-load handlers. Will think about it, thought. Later, Juan.