Hi Jan,

> -----Original Message-----
> From: Jan Beulich <jbeul...@suse.com>
> Sent: 2022年1月25日 0:30
> To: Wei Chen <wei.c...@arm.com>
> Cc: Bertrand Marquis <bertrand.marq...@arm.com>; xen-
> de...@lists.xenproject.org; sstabell...@kernel.org; jul...@xen.org
> Subject: Re: [PATCH 10/37] xen/x86: use helpers to access/update
> mem_hotplug
> 
> On 23.09.2021 14:02, Wei Chen wrote:
> > --- a/xen/arch/x86/srat.c
> > +++ b/xen/arch/x86/srat.c
> > @@ -391,8 +391,8 @@ acpi_numa_memory_affinity_init(const struct
> acpi_srat_mem_affinity *ma)
> >     memblk_nodeid[num_node_memblks] = node;
> >     if (ma->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE) {
> >             __set_bit(num_node_memblks, memblk_hotplug);
> > -           if (end > mem_hotplug)
> > -                   mem_hotplug = end;
> > +           if (end > mem_hotplug_boundary())
> > +                   mem_hotplug_update_boundary(end);
> 
> Can the if() please be folded into mem_hotplug_update_boundary(),
> eliminating (at least for the purpose here) the need for the
> separate mem_hotplug_boundary()? As said on the previous patch,
> I think the two want folding.
> 

Yes, these changes would be more make sense. I will do it in next
version.

> Jan

Reply via email to