From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrN2i-0000kM-LT for qemu-devel@nongnu.org; Wed, 28 Oct 2015 05:29:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrN2S-00049t-4F for qemu-devel@nongnu.org; Wed, 28 Oct 2015 05:29:16 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:35825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrN2R-00048z-Df for qemu-devel@nongnu.org; Wed, 28 Oct 2015 05:28:59 -0400 Received: from localhost by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 28 Oct 2015 19:18:51 +1000 Date: Wed, 28 Oct 2015 14:47:44 +0530 From: Bharata B Rao Message-ID: <20151028091744.GD747@in.ibm.com> References: <1445853185-22518-1-git-send-email-bharata@linux.vnet.ibm.com> <562FD5ED.9050306@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <562FD5ED.9050306@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [RFC PATCH v1] spapr: Memory hot-unplug support Reply-To: bharata@linux.vnet.ibm.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nathan Fontenot Cc: qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org, tyreld@linux.vnet.ibm.com, imammedo@redhat.com, david@gibson.dropbear.id.au On Tue, Oct 27, 2015 at 02:52:13PM -0500, Nathan Fontenot wrote: > On 10/26/2015 04:53 AM, Bharata B Rao wrote: > > Add support to hot remove pc-dimm memory devices. > > > > TODO: In response to memory hot removal operation on a DIMM device, > > guest kernel might refuse to offline a few LMBs that are part of that device. > > In such cases, we will have a DIMM device that has some LMBs online and some > > LMBs offline. To avoid this situation, drmgr could be enhanced to support > > a command line option that results in removal of all the LMBs or none. > > > > We had discussed an update to drmgr previously that would allow one to specify > that they wanted to remove a certain number of LMBs starting at a specified drc > index. I would assume we could incorporate the notion that it is an all or > nothing request into that. Right, but since that requires PAPR spec changes, I thought for now we could add such an option to drmgr and use that from rtas_errd on PowerKVM to correctly do memory hot unplug. Not feasible ? Regards, Bharata.