Re: [PATCH v2 3/6] KVM: x86: selftests: Set up AMD VM in pmu_counters_test

2025-01-21 Thread Sean Christopherson
On Mon, Jan 20, 2025, Colton Lewis wrote: > > > +static void test_core_counters(void) > > > +{ > > > + uint8_t nr_counters = nr_core_counters(); > > > + bool core_ext = kvm_cpu_has(X86_FEATURE_PERF_CTR_EXT_CORE); > > > + bool perfmon_v2 = kvm_cpu_has(X86_FEATURE_PERFMON_V2); > > > + struct kvm_vcpu

Re: [PATCH v2 3/6] KVM: x86: selftests: Set up AMD VM in pmu_counters_test

2025-01-20 Thread Colton Lewis
Hey Sean, Thanks for the review. Sean Christopherson writes: On Wed, Sep 18, 2024, Colton Lewis wrote: Branch in main() depending on if the CPU is Intel or AMD. They are subject to vastly different requirements because the AMD PMU lacks many properties defined by the Intel PMU including the

Re: [PATCH v2 3/6] KVM: x86: selftests: Set up AMD VM in pmu_counters_test

2025-01-08 Thread Sean Christopherson
On Wed, Sep 18, 2024, Colton Lewis wrote: > Branch in main() depending on if the CPU is Intel or AMD. They are > subject to vastly different requirements because the AMD PMU lacks > many properties defined by the Intel PMU including the entire CPUID > 0xa function where Intel stores all the PMU pro