[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fd761420-e2ef-435e-9c6b-4b0b742a62a8@163.com>
Date: Tue, 10 Feb 2026 17:07:16 +0800
From: Zhiquan Li <zhiquan_li@....com>
To: Sean Christopherson <seanjc@...gle.com>
Cc: pbonzini@...hat.com, shuah@...nel.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, zhiquan_li@....com
Subject: Re: [PATCH RESEND 4/5] KVM: x86: selftests: Allow the PMU event
filter test for Hygon
On 2/10/26 00:38, Sean Christopherson wrote:
> Manually handling every check is rather silly, just do:
>
> diff --git a/tools/testing/selftests/kvm/x86/pmu_event_filter_test.c b/tools/
> testing/selftests/kvm/x86/pmu_event_filter_test.c
> index 1c5b7611db24..93b61c077991 100644
> --- a/tools/testing/selftests/kvm/x86/pmu_event_filter_test.c
> +++ b/tools/testing/selftests/kvm/x86/pmu_event_filter_test.c
> @@ -361,7 +361,8 @@ static bool use_intel_pmu(void)
> */
> static bool use_amd_pmu(void)
> {
> - return host_cpu_is_amd && kvm_cpu_family() >= 0x17;
> + return (host_cpu_is_amd && kvm_cpu_family() >= 0x17) ||
> + host_cpu_is_hygon;
> }
>
> /*
No problem, let me simplify it in V2 patch. Thanks!
Best Regards,
Zhiquan
Powered by blists - more mailing lists