From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZU49J-00057A-C3 for qemu-devel@nongnu.org; Mon, 24 Aug 2015 22:39:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZU49G-0003zM-7E for qemu-devel@nongnu.org; Mon, 24 Aug 2015 22:39:45 -0400 Received: from e18.ny.us.ibm.com ([129.33.205.208]:57882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZU49G-0003xz-2a for qemu-devel@nongnu.org; Mon, 24 Aug 2015 22:39:42 -0400 Received: from /spool/local by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Aug 2015 22:39:40 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: <1439967371-15870-2-git-send-email-bharata@linux.vnet.ibm.com> References: <1439967371-15870-1-git-send-email-bharata@linux.vnet.ibm.com> <1439967371-15870-2-git-send-email-bharata@linux.vnet.ibm.com> Message-ID: <20150825023035.11069.68294@loki> Date: Mon, 24 Aug 2015 21:30:35 -0500 Subject: Re: [Qemu-devel] [RFC PATCH v0 1/3] pc-dimm: Add a field to PCDIMMDevice to mark device deletion state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bharata B Rao , qemu-devel@nongnu.org Cc: 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 Quoting Bharata B Rao (2015-08-19 01:56:09) > Add a field to PCDIMMDevice to note that the device has been marked > for removal. This will be used by PowerPC memory hotplug code to > honour the LMB removal requests of only those LMBs that belong to > PCDIMMDevice that has been marked for removal. This will be set from > -unplug() handler. Why not track the delete pending state in the DRC? We have an awaiting_release flag there for similar purpose. > = > Signed-off-by: Bharata B Rao > --- > include/hw/mem/pc-dimm.h | 1 + > 1 file changed, 1 insertion(+) > = > diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h > index d83bf30..4ca9316 100644 > --- a/include/hw/mem/pc-dimm.h > +++ b/include/hw/mem/pc-dimm.h > @@ -56,6 +56,7 @@ typedef struct PCDIMMDevice { > uint32_t node; > int32_t slot; > HostMemoryBackend *hostmem; > + bool delete_pending; > } PCDIMMDevice; > = > /** > -- = > 2.1.0 >=20