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

From: Steffen Eiden

Date: Fri Jul 17 2026 - 08:44:31 EST


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@xxxxxxxxxx>
> Signed-off-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>

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@xxxxxxxxxxxxx>

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


Steffen