]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pv: fix vendor checks for pmu emulation
authorJuergen Gross <jgross@suse.com>
Wed, 5 Oct 2022 07:42:33 +0000 (09:42 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 11 Oct 2022 08:50:55 +0000 (10:50 +0200)
commit2a7081ca5c06561b7cc523464b80514549ad9214
treefd6714a4caab56bc93f8354302cec2f9f45742fa
parentb567b6d0026116efe1206fc725fc0c291e1f4dcf
xen/pv: fix vendor checks for pmu emulation

The CPU vendor checks for pmu emulation are rather limited today, as
the assumption seems to be that only Intel and AMD are existing and/or
supported vendors.

Fix that by handling Centaur and Zhaoxin CPUs the same way as Intel,
and Hygon the same way as AMD.

While at it fix the return type of is_intel_pmu_msr().

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/pmu.c