Re: [PATCH v3] arm/arm64: xen: Fix to convert percpu address to gfn correctly

2020-10-08 Thread Stefano Stabellini
Thanks Masami, the patch is already in our queue for going upstream. On Fri, 9 Oct 2020, Masami Hiramatsu wrote: > Use per_cpu_ptr_to_phys() instead of virt_to_phys() and __pa() > for per-cpu address conversion. > > In xen_starting_cpu(), per-cpu xen_vcpu_info address is converted > to gfn by

[PATCH v3] arm/arm64: xen: Fix to convert percpu address to gfn correctly

2020-10-08 Thread Masami Hiramatsu
Use per_cpu_ptr_to_phys() instead of virt_to_phys() and __pa() for per-cpu address conversion. In xen_starting_cpu(), per-cpu xen_vcpu_info address is converted to gfn by virt_to_gfn() macro. However, since the virt_to_gfn(v) assumes the given virtual address is in linear mapped kernel memory