Re: [PATCH] kvm: limit the maximum CPUID.0xA.edx[0..4] to 3

2024-01-10 Thread Gao,Shiyuan
g Features (0xa/edx): > number of fixed counters= 0x4 (4) > > This is not inconsistent with num_architectural_pmu_fixed_counters in QEMU. This is the orginal patch. kvm: limit the maximum CPUID.0xA.edx[0..4] to 3 Now, the CPUID.0xA depends on the KVM r

Re: [PATCH] kvm: limit the maximum CPUID.0xA.edx[0..4] to 3

2024-01-10 Thread Shiyuan Gao via
Anyone has suggestion? When the host kernel before this commit 2e8cd7a3b828 ("kvm: x86: limit the maximum number of vPMU fixed counters to 3") on icelake microarchitecture and newer, execute cpuid in the Guest: Architecture Performance Monitoring Features (0xa/edx): number of fixed counters

[PATCH] kvm: limit the maximum CPUID.0xA.edx[0..4] to 3

2023-06-02 Thread Shiyuan Gao
Now, the CPUID.0xA depends on the KVM report. The value of CPUID.0xA.edx[0..4] and num_architectural_pmu_fixed_counters are inconsistent when the host kernel before this commit 2e8cd7a3b828 ("kvm: x86: limit the maximum number of vPMU fixed counters to 3") on icelake microarchitecture. This also b