On 2021-01-04 18:42, Qian Cai wrote:
On Mon, 2021-01-04 at 18:26 +0000, Marc Zyngier wrote:
What I'm suggesting is this [1], which is to get rid of KVM_ARM_PMU
completely. At least, the kernel configuration will be consistent.
Do you have a patch for CONFIG_KVM to select HW_PERF_EVENTS then? I
could cook
one if not.
I don't think there should be such a patch. People do disable
HW_PERF_EVENTS in production in some cases, and we should
honor that. All I am trying to guarantee at the moment is
that the KVM configuration is consistent, as I believe that's
what broke in your particular case.
What needs doing is to hide the PMU registers from userspace
when no PMU is configured, or even available. I'll try and post
something to that effect tomorrow (hey, I'm still officially
on holiday...).
M.
--
Jazz is not dead. It just smells funny...