[PATCH v2] KVM: arm64: Don't populate TPIDR_EL2 in finalise_el2()

Marc Zyngier maz at kernel.org
Wed May 27 07:32:50 PDT 2026


On Mon, 18 May 2026 16:31:26 +0100, Will Deacon wrote:
> Currently, it is not necessary for __finalise_el2() to configure
> TPIDR_EL2:
> 
> * The hyp stub code does not consume the value of TPIDR_EL2.
> 
> * On the boot cpu, TPIDR_EL1 is used for the percpu offset until the
>   ARM64_HAS_VIRT_HOST_EXTN cpucap is detected and boot alternatives
>   are patched. Before boot alternatives are patched,
>   cpu_copy_el2regs() will copy TPIDR_EL1 into TPIDR_EL2. It is not
>   necessary for __finalise_el2() to initialise TPIDR_EL2 before this.
> 
> [...]

Applied to next, thanks!

[1/1] KVM: arm64: Don't populate TPIDR_EL2 in finalise_el2()
      commit: 4cceeb8da363ac5127b147ee7345104743f53e9d

Cheers,

	M.
-- 
Without deviation from the norm, progress is not possible.





More information about the linux-arm-kernel mailing list