[PATCH v6 3/8] KVM: arm64: Factor out reusable vCPU reset helpers

Steffen Eiden seiden at linux.ibm.com
Fri Jul 17 05:43:59 PDT 2026


On Wed, Jul 15, 2026 at 09:12:33AM +0100, Fuad Tabba wrote:
> Pull the reusable pieces out of kvm_reset_vcpu(): expose the reset
> PSTATE values in kvm_arm.h, and split the core register reset and the
> PSCI-driven reset into kvm_reset_vcpu_core() and kvm_reset_vcpu_psci().
> A follow-up series reuses these to reset protected vCPUs at EL2.
> 
> No functional change intended.
> 
> Reviewed-by: Vincent Donnefort <vdonnefort at google.com>
> Signed-off-by: Fuad Tabba <fuad.tabba at linux.dev>

That looks good. There is another usecase for this. I did a very similar
thing in [1] to reuse the reset functionality for arm64 on s390. I  just
did not the move the code to a different file.

FWIW: 

Reviewed-by: Steffen Eiden <seiden at linux.ibm.com>

[1] https://lore.kernel.org/all/20260706085229.979525-11-seiden@linux.ibm.com/


	Steffen




More information about the linux-arm-kernel mailing list