KVM: selftests: Allow the PMU event filter test for Hygon

At present, the PMU event filter test for AMD architecture is applicable
for Hygon architecture as well.  Since all known Hygon processors can
re-use the test cases, so it isn't necessary to create a new wrapper.

Signed-off-by: Zhiquan Li <zhiquan_li@163.com>
Link: https://patch.msgid.link/20260212103841.171459-4-zhiquan_li@163.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Zhiquan Li 2026-02-12 18:38:40 +08:00 committed by Sean Christopherson
parent 53b2869231
commit 6b8b11ba47

View File

@ -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;
}
/*