From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGxMd-0003cE-CU for qemu-devel@nongnu.org; Thu, 29 Jan 2015 17:15:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGxMY-0005fw-DB for qemu-devel@nongnu.org; Thu, 29 Jan 2015 17:15:03 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:46072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGxMY-0005ex-9P for qemu-devel@nongnu.org; Thu, 29 Jan 2015 17:14:58 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 29 Jan 2015 17:14:52 -0500 Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id C0DD56E803F for ; Thu, 29 Jan 2015 17:06:42 -0500 (EST) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t0TMEoKu27852896 for ; Thu, 29 Jan 2015 22:14:50 GMT Received: from d01av03.pok.ibm.com (localhost [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t0TMEo3o013066 for ; Thu, 29 Jan 2015 17:14:50 -0500 Message-ID: <54CAB0D8.4010405@linux.vnet.ibm.com> Date: Thu, 29 Jan 2015 14:14:48 -0800 From: Tyrel Datwyler MIME-Version: 1.0 References: <1420697420-16053-1-git-send-email-bharata@linux.vnet.ibm.com> In-Reply-To: <1420697420-16053-1-git-send-email-bharata@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v1 00/13] CPU and Memory hotplug for PowerPC guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao , qemu-devel@nongnu.org Cc: imammedo@redhat.com, mdroth@linux.vnet.ibm.com, Nathan Fontenot , agraf@suse.de On 01/07/2015 10:10 PM, Bharata B Rao wrote: > This patchset enables CPU and memory hotplug support for PowerPC guests. I missed seeing this as the qemu-ppc list was not included. Can you please add myself and Nathan on Cc in the future as well. Tyrel > > Changes in this patchset (v1): > > - Based on top of Michael Roth's tree > (https://github.com/mdroth/qemu/commits/spapr-hotplug-core) which serves > as base for his PCI hotplug patches too. > - Switched to device_add/del semantics instead of cpu-add. > - Supporting CPU hot unplug now. > - Added patches to enable memory hotplug. > - Added ibm,dynamic-reconfiguration-memory support which is needed for > memory hotplug. > > v0 - http://lists.nongnu.org/archive/html/qemu-devel/2014-09/msg00752.html > > CPU hotplug > ----------- > - Works with BE guest, has issues with LE guest. Has been tested on BE host > only. > - Adding a core (and all its threads) in response to device_add command. > Similarly removing a core via device_del will remove all the threads. > - Using Gu Zheng's "reclaim vCPU objects" patch to remove and reuse > the vCPU objects after CPUs removal. > (Gu Zheng's original patch: > http://lists.gnu.org/archive/html/qemu-devel/2014-12/msg01829.html) > > Memory hotplug > -------------- > - Able to get an LMB added with the current patchset, but there are issues > which I am still debugging. > - Re-using pc-dimm infrastructure (hw/mem/pc-dimm.c) to support memory > hotplug on PowerPC. > - Tested with Nathan Fontenot's memory hotplug kernel patches (with additions > to drive memory hotplug from EPOW interrupt path) > (https://www.marc.info/?l=linuxppc-embedded&m=141626066317143&w=2) > > Bharata B Rao (11): > spapr: Add DRC dt entries for CPUs > spapr: Consider max_cpus during xics initialization > spapr: Factor out CPU initialization code into realizefn > spapr: Support ibm,lrdr-capacity device tree property > spapr: CPU hotplug support > spapr: Start all the threads of CPU core when core is hotplugged > spapr: Enable CPU hotplug for POWER8 CPU family > spapr: CPU hot unplug support > spapr: Initialize hotplug memory address space > spapr: Support ibm,dynamic-reconfiguration-memory > spapr: Memory hotplug support > > Gu Zheng (1): > cpus, spapr: reclaim allocated vCPU objects > > Michael Roth (1): > spapr: enable PHB/CPU/LMB hotplug for pseries-2.3 > > cpus.c | 44 +++ > default-configs/ppc64-softmmu.mak | 1 + > hw/ppc/spapr.c | 744 ++++++++++++++++++++++++++++++++++---- > hw/ppc/spapr_events.c | 11 +- > hw/ppc/spapr_hcall.c | 51 ++- > hw/ppc/spapr_rtas.c | 28 +- > include/hw/ppc/spapr.h | 27 +- > include/qom/cpu.h | 11 + > include/sysemu/kvm.h | 1 + > kvm-all.c | 57 ++- > target-ppc/translate_init.c | 50 ++- > 11 files changed, 918 insertions(+), 107 deletions(-) >