Re: [PATCH 2/3] target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU

2025-03-26 Thread Mingwei Zhang
On Wed, Mar 26, 2025 at 5:44 PM Mi, Dapeng wrote: > > > On 3/26/2025 2:46 PM, Dongli Zhang wrote: > > Hi Dapeng, > > > > PATCH 1-4 from the below patchset are already reviewed. (PATCH 5-10 are for > > PMU > > registers reset). > > > > https://lore.kernel.org/all/20250302220112.17653-1-dongli.zh..

Re: [PATCH 2/3] target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU

2025-03-26 Thread Mi, Dapeng
On 3/27/2025 10:15 AM, Mingwei Zhang wrote: > On Wed, Mar 26, 2025 at 5:44 PM Mi, Dapeng wrote: >> >> On 3/26/2025 2:46 PM, Dongli Zhang wrote: >>> Hi Dapeng, >>> >>> PATCH 1-4 from the below patchset are already reviewed. (PATCH 5-10 are for >>> PMU >>> registers reset). >>> >>> https://lore.k

Re: [PATCH 2/3] target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU

2025-03-26 Thread Mi, Dapeng
On 3/26/2025 2:46 PM, Dongli Zhang wrote: > Hi Dapeng, > > PATCH 1-4 from the below patchset are already reviewed. (PATCH 5-10 are for > PMU > registers reset). > > https://lore.kernel.org/all/20250302220112.17653-1-dongli.zh...@oracle.com/ > > They require only trivial modification. i.e.: > > h

Re: [PATCH 2/3] target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU

2025-03-26 Thread Dongli Zhang
Hi Dapeng, PATCH 1-4 from the below patchset are already reviewed. (PATCH 5-10 are for PMU registers reset). https://lore.kernel.org/all/20250302220112.17653-1-dongli.zh...@oracle.com/ They require only trivial modification. i.e.: https://github.com/finallyjustice/patchset/tree/master/qemu-amd-

[PATCH 2/3] target/i386: Call KVM_CAP_PMU_CAPABILITY iotcl to enable/disable PMU

2025-03-24 Thread Dapeng Mi
After introducing mediated vPMU, mediated vPMU must be enabled by explicitly calling KVM_CAP_PMU_CAPABILITY to enable. Thus call KVM_CAP_PMU_CAPABILITY to enable/disable PMU base on user configuration. Suggested-by: Zhao Liu Signed-off-by: Dapeng Mi --- target/i386/kvm/kvm.c | 17 ++