Re: [PATCH] perf/x86: KVM: Disable vPMU support on hybrid CPUs (host PMUs)

From: Andi Kleen
Date: Mon Jan 23 2023 - 20:04:47 EST



If I understand correct, the workaround in KVM is to add a white/black
list to filter the events. I think we can do the same thing for the
hybrid machine for now.
https://lore.kernel.org/lkml/CAOyeoRUUK+T_71J=+zcToyL93LkpARpsuWSfZS7jbJq=wd1rQg@xxxxxxxxxxxxxx/


This will make everyone who actually wants to use the PMU sad.

It's reasonable if the vCPUs are not bound, but if they are bound it would be better to expose it with a suitable CPUID for the types.


-Andi