From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXhY9-0005vy-DY for qemu-devel@nongnu.org; Sun, 21 Feb 2016 22:52:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXhY6-0006Kc-8y for qemu-devel@nongnu.org; Sun, 21 Feb 2016 22:52:41 -0500 Date: Mon, 22 Feb 2016 09:22:30 +0530 From: Amit Shah Message-ID: <20160222035230.GA10967@grmbl.mre> References: <1454626230-16334-1-git-send-email-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454626230-16334-1-git-send-email-richard.weiyang@gmail.com> Subject: Re: [Qemu-devel] [PATCH] migration: reorder code to make it symmetric List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Yang Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, quintela@redhat.com On (Thu) 04 Feb 2016 [22:50:30], Wei Yang wrote: > In qemu_savevm_state_complete_precopy(), it iterates on each device to add > a json object and transfer related status to destination, while the order > of the last two steps could be refined. > > Current order: > > json_start_object() > save_section_header() > vmstate_save() > json_end_object() > save_section_footer() > > After the change: > > json_start_object() > save_section_header() > vmstate_save() > save_section_footer() > json_end_object() > > This patch reorder the code to to make it symmetric. No functional change. > > Signed-off-by: Wei Yang Reviewed-by: Amit Shah Thanks, Amit