]> www.infradead.org Git - users/hch/misc.git/commit
KVM: arm64: Advertise FEAT_ECV when possible
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Feb 2025 13:49:05 +0000 (13:49 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 24 Feb 2025 19:33:34 +0000 (11:33 -0800)
commit8b0b98ebf34d6e6ad68a27109f78f2e153187737
treef10db93c640eaff096a78f537f7da0b48dac2aa1
parent642c23ea8b45b673d8a256e01c04ef5b3c819f11
KVM: arm64: Advertise FEAT_ECV when possible

We can advertise support for FEAT_ECV if supported on the HW as
long as we limit it to the basic trap bits, and not advertise
CNTPOFF_EL2 support, even if the host has it (the short story
being that CNTPOFF_EL2 is not virtualisable).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20250220134907.554085-13-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/nested.c