From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRxJN-0001ZB-DY for qemu-devel@nongnu.org; Wed, 19 Aug 2015 02:57:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRxJJ-0002P8-9M for qemu-devel@nongnu.org; Wed, 19 Aug 2015 02:57:25 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:60821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRxJI-0002OJ-LC for qemu-devel@nongnu.org; Wed, 19 Aug 2015 02:57:21 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Aug 2015 16:57:16 +1000 From: Bharata B Rao Date: Wed, 19 Aug 2015 12:26:08 +0530 Message-Id: <1439967371-15870-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v0 0/3] sPAPR: Memory hot removal support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Bharata B Rao , mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, nfont@linux.vnet.ibm.com, imammedo@redhat.com, david@gibson.dropbear.id.au This patchset enables memory hot unplug for PowerPC sPAPR guests. This applies against spapr-next branch of David Gibson's tree that currently contains the memory hotplug code for sPAPR. Currently with drmgr, it is not possible to attempt just the removal of those LMBs that form the DIMM device when the DIMM device is removed. drmgr just walks through all the available 'removable' LMBs and tries to off-line the specified number of LMBs. Because of this, I have introduced some additional checks in QEMU to fail the removal request of an LMB that doesn't belong to the DIMM device which is being unplugged. This causes some churn in the guest when the LMB that didn't belong to the DIMM device was offlined and later brought online again by drmgr when QEMU fails the release of the corresponding DRC object. Bharata B Rao (3): pc-dimm: Add a field to PCDIMMDevice to mark device deletion state spapr-rtas: Enable rtas_set_indicator() to return correct error spapr: Memory hot-unplug support hw/ppc/spapr.c | 114 ++++++++++++++++++++++++++++++++++++++++++++++- hw/ppc/spapr_drc.c | 21 +++++++++ hw/ppc/spapr_rtas.c | 9 ++-- include/hw/mem/pc-dimm.h | 1 + include/hw/ppc/spapr.h | 2 + 5 files changed, 142 insertions(+), 5 deletions(-) -- 2.1.0