Re: [PATCH] KVM: x86/pmu: Apply event filter mechanism to emulated instructions

From: Sean Christopherson
Date: Wed Feb 22 2023 - 14:28:23 EST


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