KVM: arm64: Condition FGT registers on feature availability
authorMarc Zyngier <maz@kernel.org>
Mon, 14 Jul 2025 12:26:30 +0000 (13:26 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 16 Jul 2025 03:24:29 +0000 (20:24 -0700)
commit72c62700b27922e3ea456f01684c8e5e29755544
treea8db793d1438950f2efff76bb6f4b4ab58455d3e
parent9fe9663e47e2124b569fcd3691b1bbc32c360cef
KVM: arm64: Condition FGT registers on feature availability

We shouldn't expose the FEAT_FGT registers unconditionally. Make
them dependent on FEAT_FGT being actually advertised to the guest.

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