Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers

From: Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.)
Date: Mon Apr 05 2021 - 23:24:55 EST


Hi,like.
Some questions about this new pebs patches set:
https://lore.kernel.org/kvm/20210329054137.120994-2-like.xu@xxxxxxxxxxxxxxx/

The new hardware facility supporting guest PEBS is only available
on Intel Ice Lake Server platforms for now.


AFAIK, Icelake supports adaptive PEBS and extended PEBS which Skylake doesn't.
But we can still use IA32_PEBS_ENABLE MSR to indicate general-purpose counter in Skylake.
Is there anything else that only Icelake supports in this patches set?


Besides, we have tried this patches set in Icelake. We can use pebs(eg: "perf record -e cycles:pp")
when guest is kernel-5.11, but can't when kernel-4.18. Is there a minimum guest kernel version requirement?


Thanks,
Xiangdong Liu