]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Don't skip per-vcpu NV initialisation
authorMarc Zyngier <maz@kernel.org>
Wed, 1 Apr 2026 10:35:57 +0000 (11:35 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 1 Apr 2026 14:42:25 +0000 (15:42 +0100)
commitd82d09d5ba4be0b5eb053b2ba2bc0e82c49cf2c8
tree08b4536375682df9aefec516dff50d3e8292774b
parentecc7f02499544ae879716be837af78260a6a10f7
KVM: arm64: Don't skip per-vcpu NV initialisation

Some GICv5-related rework have resulted in the NV sanitisation of
registers being skipped for secondary vcpus, which is a pretty bad
idea.

Hoist the NV init early so that it is always executed.

Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Fixes: cbd8c958be54a ("KVM: arm64: Return early from kvm_finalize_sys_regs() if guest has run")
Link: https://sashiko.dev/#/patchset/20260319154937.3619520-1-sascha.bischoff%40arm.com
Link: https://patch.msgid.link/20260401103611.357092-3-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c