mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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:
parent
53b2869231
commit
6b8b11ba47
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user