Re: [PATCH] KVM: x86/pmu: Apply event filter mechanism to emulated instructions
From: Aaron Lewis
Date: Wed Feb 22 2023 - 15:38:27 EST
On Wed, Feb 22, 2023 at 7:28 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> On Wed, Feb 22, 2023, Like Xu wrote:
> > From: Like Xu <likexu@xxxxxxxxxxx>
> >
> > The check_pmu_event_filter() prevents the perf_event from being created
> > and stops the associated counters from increasing, the same check should
> > also be applied to counter increases caused by emulated instructions.
> > Otherwise this filter mechanism cannot be considered to be in effect.
> >
> > Reported-by: Jinrong Liang <cloudliang@xxxxxxxxxxx>
>
> Already posted by Aaron[*], but I don't think there's been a follow-up. Aaron?
>
> [*] https://lore.kernel.org/all/20221209194957.2774423-2-aaronlewis@xxxxxxxxxx
There hasn't been a follow-up yet. I'll try to get one out in the
next week or so.