]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Advertise support for FEAT_HPMN0
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 18:23:46 +0000 (18:23 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 19:00:40 +0000 (19:00 +0000)
commit166b77a2f42341c22fe6cda504a1afa3f672f920
tree2c95f8bf7ec802d419fa7f434e2f9b4efdbc341a
parent336afe0c832d6eb985d0e9dbc5a70929594e58d9
KVM: arm64: nv: Advertise support for FEAT_HPMN0

Everything is in place now for KVM to actually handle MDCR_EL2.HPMN. Not
only that, the emulation is capable of doing FEAT_HPMN0. Advertise
support for the feature in the VM's ID registers. It is possible to
emulate FEAT_HPMN0 on hardware that doesn't support it since KVM
currently traps all PMU registers. Having said that, let's only
advertise the feature on supporting hardware in case KVM ever provides
'direct' PMU support to VMs w/o involving host perf.

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