Received: from eggs.gnu.org ([2001:4830:134:3::10]:59313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJLsM-0004av-JT for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:49:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJLsL-0004fO-Oq for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:49:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJLsL-0004fB-IA for qemu-devel@nongnu.org; Thu, 05 Feb 2015 07:49:41 -0500 From: Juan Quintela In-Reply-To: <54D35566.1070704@redhat.com> (Paolo Bonzini's message of "Thu, 05 Feb 2015 12:35:02 +0100") References: <201502051933093705711@sangfor.com.cn> <54D35566.1070704@redhat.com> Date: Thu, 05 Feb 2015 13:49:38 +0100 Message-ID: <8761bg5xr1.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Amit Shah , Zhang Haoyu , qemu-devel , "Michael S.Tsirkin" Paolo Bonzini wrote: > On 05/02/2015 12:33, Zhang Haoyu wrote: >> fix mc146818rtc wrong subsection name to avoid vmstate_subsection_load() fail >> during incoming migration or loadvm. >> >> Signed-off-by: Zhang Haoyu >> --- >> hw/timer/mc146818rtc.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c >> index 5a107fa..0600c9a 100644 >> --- a/hw/timer/mc146818rtc.c >> +++ b/hw/timer/mc146818rtc.c >> @@ -734,7 +734,7 @@ static int rtc_post_load(void *opaque, int version_id) >> } >> >> static const VMStateDescription vmstate_rtc_irq_reinject_on_ack_count = { >> - .name = "irq_reinject_on_ack_count", >> + .name = "mc146818rtc/irq_reinject_on_ack_count", >> .version_id = 1, >> .minimum_version_id = 1, >> .fields = (VMStateField[]) { >> > > Adding Amit. > > Reviewed-by: Paolo Bonzini > > It would be nice if registering a subsection automatically caught > wrongly-named ones... You are right here. THere is another check that I would like, that we only have subsections at the top livel. Thanks, JUan. > Paolo