Re: [PATCH v4 01/38] perf: Support get/put mediated PMU interfaces

2025-05-14 Thread Mi, Dapeng
On 5/15/2025 6:48 AM, Sean Christopherson wrote: > On Mon, Mar 24, 2025, Mingwei Zhang wrote: >> +/* >> + * Currently invoked at VM creation to >> + * - Check whether there are existing !exclude_guest events of PMU with >> + * PERF_PMU_CAP_MEDIATED_VPMU >> + * - Set nr_mediated_pmu_vms to preve

Re: [PATCH v4 01/38] perf: Support get/put mediated PMU interfaces

2025-05-14 Thread Sean Christopherson
On Mon, Mar 24, 2025, Mingwei Zhang wrote: > +/* > + * Currently invoked at VM creation to > + * - Check whether there are existing !exclude_guest events of PMU with > + * PERF_PMU_CAP_MEDIATED_VPMU > + * - Set nr_mediated_pmu_vms to prevent !exclude_guest event creation on > + * PMUs with PERF

[PATCH v4 01/38] perf: Support get/put mediated PMU interfaces

2025-03-24 Thread Mingwei Zhang
From: Kan Liang Currently, the guest and host share the PMU resources when a guest is running. KVM has to create an extra virtual event to simulate the guest's event, which brings several issues, e.g., high overhead, not accuracy and etc. A new mediated PMU method is proposed to address the issu