Re: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-06 Thread Sandipan Das
On 3/3/2025 3:30 AM, Dongli Zhang wrote: > When the PERFCORE is disabled with "-cpu host,-perfctr-core", it is > reflected in in guest dmesg. > > [0.285136] Performance Events: AMD PMU driver. > > However, the guest CPUID indicates the PerfMonV2 is still available. > > CPU: >Extended Per

Re: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-05 Thread Zhao Liu
On Sun, Mar 02, 2025 at 02:00:09PM -0800, Dongli Zhang wrote: > Date: Sun, 2 Mar 2025 14:00:09 -0800 > From: Dongli Zhang > Subject: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE > unavailable > X-Mailer: git-send-email 2.43.5 > > When the PERFCORE is dis

Re: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-04 Thread Xiaoyao Li
On 3/5/2025 6:53 AM, dongli.zh...@oracle.com wrote: Hi Xiaoyao, On 3/4/25 6:40 AM, Xiaoyao Li wrote: On 3/3/2025 6:00 AM, Dongli Zhang wrote: When the PERFCORE is disabled with "-cpu host,-perfctr-core", it is reflected in in guest dmesg. [    0.285136] Performance Events: AMD PMU driver. I

Re: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-04 Thread dongli . zhang
Hi Xiaoyao, On 3/4/25 6:40 AM, Xiaoyao Li wrote: > On 3/3/2025 6:00 AM, Dongli Zhang wrote: >> When the PERFCORE is disabled with "-cpu host,-perfctr-core", it is >> reflected in in guest dmesg. >> >> [    0.285136] Performance Events: AMD PMU driver. > > I'm a little confused. wWhen no perfctr-c

Re: [PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-04 Thread Xiaoyao Li
On 3/3/2025 6:00 AM, Dongli Zhang wrote: When the PERFCORE is disabled with "-cpu host,-perfctr-core", it is reflected in in guest dmesg. [0.285136] Performance Events: AMD PMU driver. I'm a little confused. wWhen no perfctr-core, AMD PMU driver can still be probed? (forgive me if I ask a

[PATCH v2 01/10] target/i386: disable PerfMonV2 when PERFCORE unavailable

2025-03-02 Thread Dongli Zhang
When the PERFCORE is disabled with "-cpu host,-perfctr-core", it is reflected in in guest dmesg. [0.285136] Performance Events: AMD PMU driver. However, the guest CPUID indicates the PerfMonV2 is still available. CPU: Extended Performance Monitoring and Debugging (0x8022): AMD p