From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aycn1-0005tf-KV for qemu-devel@nongnu.org; Fri, 06 May 2016 06:15:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aycmo-0005IT-HD for qemu-devel@nongnu.org; Fri, 06 May 2016 06:15:14 -0400 Received: from e28smtp04.in.ibm.com ([125.16.236.4]:60760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aycmn-00057A-Qm for qemu-devel@nongnu.org; Fri, 06 May 2016 06:15:06 -0400 Received: from localhost by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 6 May 2016 15:44:22 +0530 Date: Fri, 6 May 2016 15:44:10 +0530 From: Bharata B Rao Message-ID: <20160506101410.GC16087@in.ibm.com> Reply-To: bharata@linux.vnet.ibm.com References: <1459413561-30745-1-git-send-email-bharata@linux.vnet.ibm.com> <1459413561-30745-11-git-send-email-bharata@linux.vnet.ibm.com> <20160506105721.7093b724@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160506105721.7093b724@nial.brq.redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH v2.1 10/12] spapr: CPU hotplug support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org, mjrosato@linux.vnet.ibm.com, thuth@redhat.com, pkrempa@redhat.com, ehabkost@redhat.com, aik@ozlabs.ru, armbru@redhat.com, agraf@suse.de, borntraeger@de.ibm.com, qemu-ppc@nongnu.org, pbonzini@redhat.com, mdroth@linux.vnet.ibm.com, afaerber@suse.de, david@gibson.dropbear.id.au On Fri, May 06, 2016 at 10:57:21AM +0200, Igor Mammedov wrote: > On Thu, 31 Mar 2016 14:09:19 +0530 > Bharata B Rao wrote: > > > Set up device tree entries for the hotplugged CPU core and use the > > exising RTAS event logging infrastructure to send CPU hotplug notification > > to the guest. > > perhaps you could reuse: > > [RFC,20/42] machine: add cpu-hotplug machine option > http://patchwork.ozlabs.org/patch/617516/ > > to enable cpu hotplug explicitly, > and by default machine would be hotplug less saving resources. We explicitly enable hotplug for specific machine type versions by setting sPAPRMachineClass.dr_cpu_enabled. So we check it to ensure that there are no DR connector objects (the resources needed for hotplug) created for a machine that doesn't support CPU hotplug. Similar is the case for memory hotplug. So you are suggesting that we switch from sAPPR specific check (sPAPRMachineClass.dr_cpu_enabled) to the above MachineState.cpu_hotplug ? Regards, Bharata.