qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [PATCH v4 1/5] pc-dimm: make qmp_pc_dimm_device_list() so


From: Bharata B Rao
Subject: Re: [Qemu-ppc] [PATCH v4 1/5] pc-dimm: make qmp_pc_dimm_device_list() sort devices by address
Date: Thu, 8 Mar 2018 09:21:14 +0530
User-agent: Mutt/1.9.2 (2017-12-15)

On Thu, Mar 08, 2018 at 10:33:33AM +0800, Haozhong Zhang wrote:
> Make qmp_pc_dimm_device_list() return sorted by start address
> list of devices so that it could be reused in places that
> would need sorted list*. Reuse existing pc_dimm_built_list()
> to get sorted list.
> 
> While at it hide recursive callbacks from callers, so that:
> 
>   qmp_pc_dimm_device_list(qdev_get_machine(), &list);
> 
> could be replaced with simpler:
> 
>   list = qmp_pc_dimm_device_list();
> 
> * follow up patch will use it in build_srat()
> 
> Signed-off-by: Haozhong Zhang <address@hidden>
> Reviewed-by: Igor Mammedov <address@hidden>
> ---
>  hw/mem/pc-dimm.c         | 83 
> +++++++++++++++++++++++++-----------------------
>  hw/ppc/spapr.c           |  3 +-

I have used this patch with SPAPR to implement the new device tree property
ibm,dynamic-memory-v2 at http://patchwork.ozlabs.org/patch/882387/

Reviewed-by: Bharata B Rao <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]