Re: [PATCH v4 20/38] KVM: x86/pmu: Check if mediated vPMU can intercept rdpmc

2025-05-26 Thread Sandipan Das
On 3/24/2025 11:01 PM, Mingwei Zhang wrote: > From: Dapeng Mi > > Check if rdpmc can be intercepted for mediated vPMU. Simply speaking, > if guest own all PMU counters in mediated vPMU, then rdpmc interception > should be disabled to mitigate the performance impact, otherwise rdpmc > has to be in

Re: [PATCH v4 20/38] KVM: x86/pmu: Check if mediated vPMU can intercept rdpmc

2025-05-14 Thread Mi, Dapeng
On 5/15/2025 8:19 AM, Sean Christopherson wrote: > The shortlog is wildly inaccurate. KVM is not simply checking, KVM is > actively > disabling RDPMC interception. *That* needs to be the focus of the shortlog > and > changelog. Sure. > >> diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.

Re: [PATCH v4 20/38] KVM: x86/pmu: Check if mediated vPMU can intercept rdpmc

2025-05-14 Thread Sean Christopherson
The shortlog is wildly inaccurate. KVM is not simply checking, KVM is actively disabling RDPMC interception. *That* needs to be the focus of the shortlog and changelog. > diff --git a/arch/x86/kvm/pmu.c b/arch/x86/kvm/pmu.c > index 92c742ead663..6ad71752be4b 100644 > --- a/arch/x86/kvm/pmu.c > +

[PATCH v4 20/38] KVM: x86/pmu: Check if mediated vPMU can intercept rdpmc

2025-03-24 Thread Mingwei Zhang
From: Dapeng Mi Check if rdpmc can be intercepted for mediated vPMU. Simply speaking, if guest own all PMU counters in mediated vPMU, then rdpmc interception should be disabled to mitigate the performance impact, otherwise rdpmc has to be intercepted to avoid guest obtain host counter's data via