]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Extend unified RESx handling to runtime sanitisation
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:14 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 08:59:28 +0000 (08:59 +0000)
commitf9d58956423844237e18a758dc0f1b2cf6480042
tree5793e365c9341eeac780aa6fb54927cc18ca3e6b
parent0879478913dd671b0aed1e3960c4b35fb8546ab4
KVM: arm64: Extend unified RESx handling to runtime sanitisation

Add a new helper to retrieve the RESx values for a given system
register, and use it for the runtime sanitisation.

This results in slightly better code generation for a fairly hot
path in the hypervisor, and additionally covers all sanitised
registers in all conditions, not just the VNCR-based ones.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-6-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/emulate-nested.c
arch/arm64/kvm/nested.c