Re: [RFC PATCH 05/14] KVM: arm64: Always allow fixed cycle counter
From: Marc Zyngier
Date: Tue Dec 03 2024 - 17:18:25 EST
On Tue, 03 Dec 2024 19:32:11 +0000,
Oliver Upton <oliver.upton@xxxxxxxxx> wrote:
>
> The fixed CPU cycle counter is mandatory for PMUv3, so it doesn't make a
> lot of sense allowing userspace to filter it. Only apply the PMU event
> filter to *programmed* event counters.
But that's a change in ABI, isn't it? We explicitly say in the
documentation that the cycle counter can be filtered by specifying
event 0x11.
More importantly, the current filtering works in terms of events, and
not in terms of counters.
Instead of changing the ABI, how about simply not supporting filtering
on such non-compliant HW? Surely that would simplify a few things.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.