KVM: arm64: Define helper for ICH_VTR_EL2
authorMarc Zyngier <maz@kernel.org>
Mon, 14 Jul 2025 12:26:27 +0000 (13:26 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 16 Jul 2025 03:24:29 +0000 (20:24 -0700)
commitce7a1cff2e4c4ec185bae25a7c53609407d2c5eb
tree8b41b2026bfad399883b096118d1d6b3494de253
parentc6ef468610800259fb1551b1e8c2f5bec7e15e44
KVM: arm64: Define helper for ICH_VTR_EL2

Move the computation of the ICH_VTR_EL2 value to a common location,
so that it can be reused by the save/restore code.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250714122634.3334816-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c
arch/arm64/kvm/vgic/vgic.h