[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH v0 1/3] pc-dimm: Add a field to PCDIMMDevice t
From: |
Michael Roth |
Subject: |
Re: [Qemu-ppc] [RFC PATCH v0 1/3] pc-dimm: Add a field to PCDIMMDevice to mark device deletion state |
Date: |
Mon, 24 Aug 2015 21:30:35 -0500 |
User-agent: |
alot/0.3.6 |
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 <address@hidden>
> ---
> 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
>