]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Remove dead code resetting HCR_EL2 for pKVM
authorFuad Tabba <tabba@google.com>
Thu, 22 Jan 2026 11:22:15 +0000 (11:22 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 23 Jan 2026 11:28:48 +0000 (11:28 +0000)
commitc103c2dfe4975da31b67a0fcb95761359f30992d
tree4a755de4cac8c634a8fb09e8f9d2ae54fd1cfd27
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
KVM: arm64: Remove dead code resetting HCR_EL2 for pKVM

The pKVM lifecycle does not support tearing down the hypervisor and
returning to the hyp stub once initialized. The transition to protected
mode is one-way.

Consequently, the code path in hyp-init.S responsible for resetting
EL2 registers (triggered by kexec or hibernation) is unreachable in
protected mode.

Remove the dead code handling HCR_EL2 reset for
ARM64_KVM_PROTECTED_MODE.

No functional change intended.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260122112218.531948-2-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/hyp-init.S