Re: [PATCH 2/2] powerpc/pseries: Skip vpa_init() for boot cpu in smp_setup_cpu()
Madhavan Srinivasan <[email protected]> Thu, 30 Jul 2026 11:11:53 +0530
| Newsgroups | org.kernel.vger.kvm-ppc,org.kernel.vger.kvm,org.ozlabs.lists.linuxppc-dev |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 08 Jul 2026 07:28:40 +0530, Vaibhav Jain wrote:
> During pSeries_setup_arch(), VPA for boot-cpu is first to be
> initialized. However later in the boot, smp_setup_cpu() is called for
> setting up VPA on boot and secondary cpus that were brought online. This
> results in vpa_init() being called twice for boot-cpu and three redundant
> H_REGISTER_VPA hcalls being made to the hypervisor.
>
> Fix this by adding an extra condition in smp_set_cpu() to call vpa_init()
> only on non boot-cpus.
>
> [...]
Applied to powerpc/fixes.
[2/2] powerpc/pseries: Skip vpa_init() for boot cpu in smp_setup_cpu()
https://git.kernel.org/powerpc/c/8f45abd50aaa4155a72ec539f371dafb039786df
cheers