From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZYNu-00032K-51 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 01:57:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZYNq-0005Wv-4a for qemu-devel@nongnu.org; Wed, 09 Sep 2015 01:57:30 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:34970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZYNp-0005W5-I0 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 01:57:26 -0400 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 9 Sep 2015 15:57:23 +1000 Date: Wed, 9 Sep 2015 11:26:21 +0530 From: Bharata B Rao Message-ID: <20150909055620.GE17433@in.ibm.com> References: <1438838837-28504-1-git-send-email-bharata@linux.vnet.ibm.com> <1438838837-28504-3-git-send-email-bharata@linux.vnet.ibm.com> <20150904060343.GW6537@voom.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150904060343.GW6537@voom.redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH v4 02/11] exec: Do vmstate unregistration from cpu_exec_exit() Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: mdroth@linux.vnet.ibm.com, aik@ozlabs.ru, agraf@suse.de, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, nfont@linux.vnet.ibm.com, imammedo@redhat.com, afaerber@suse.de On Fri, Sep 04, 2015 at 04:03:43PM +1000, David Gibson wrote: > On Thu, Aug 06, 2015 at 10:57:08AM +0530, Bharata B Rao wrote: > > cpu_exec_init() does vmstate_register and register_savevm for the CPU device. > > These need to be undone from cpu_exec_exit(). These changes are needed to > > support CPU hot removal and also to correctly fail hotplug attempts > > beyond max_cpus. > > > > Signed-off-by: Bharata B Rao > > As with 1/2, looks reasonable, but I'm wondering how x86 hotplug is > getting away without this. x86 does this explicitly in CPU's unrealizefn. Since registration is done from cpu_exec_init(), I though un-registration could be done in cpu_exec_init() instead of each arch doing it separately. As said earlier, I will probably pursue these changes separately from this series. Regards, Bharata.