Re: [PATCH v4 2/3] spapr_numa: create a vcpu associativity helper

2020-09-04 Thread Daniel Henrique Barboza
On 9/4/20 7:02 AM, Greg Kurz wrote: On Thu, 3 Sep 2020 22:04:38 -0300 Daniel Henrique Barboza wrote: The work to be done in h_home_node_associativity() intersects with what is already done in spapr_numa_fixup_cpu_dt(). This patch creates a new helper, spapr_numa_get_vcpu_assoc(), to be use

Re: [PATCH v4 2/3] spapr_numa: create a vcpu associativity helper

2020-09-04 Thread Greg Kurz
On Thu, 3 Sep 2020 22:04:38 -0300 Daniel Henrique Barboza wrote: > The work to be done in h_home_node_associativity() intersects > with what is already done in spapr_numa_fixup_cpu_dt(). This > patch creates a new helper, spapr_numa_get_vcpu_assoc(), to > be used for both spapr_numa_fixup_cpu_dt

Re: [PATCH v4 2/3] spapr_numa: create a vcpu associativity helper

2020-09-04 Thread Daniel Henrique Barboza
On 9/4/20 1:10 AM, David Gibson wrote: On Thu, Sep 03, 2020 at 10:04:38PM -0300, Daniel Henrique Barboza wrote: The work to be done in h_home_node_associativity() intersects with what is already done in spapr_numa_fixup_cpu_dt(). This patch creates a new helper, spapr_numa_get_vcpu_assoc(), t

Re: [PATCH v4 2/3] spapr_numa: create a vcpu associativity helper

2020-09-03 Thread David Gibson
On Thu, Sep 03, 2020 at 10:04:38PM -0300, Daniel Henrique Barboza wrote: > The work to be done in h_home_node_associativity() intersects > with what is already done in spapr_numa_fixup_cpu_dt(). This > patch creates a new helper, spapr_numa_get_vcpu_assoc(), to > be used for both spapr_numa_fixup_c

[PATCH v4 2/3] spapr_numa: create a vcpu associativity helper

2020-09-03 Thread Daniel Henrique Barboza
The work to be done in h_home_node_associativity() intersects with what is already done in spapr_numa_fixup_cpu_dt(). This patch creates a new helper, spapr_numa_get_vcpu_assoc(), to be used for both spapr_numa_fixup_cpu_dt() and h_home_node_associativity(). While we're at it, use memcpy() instead