]> 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)
commit72b76bf9aa3653b079a5b9db0307ff413d326045
treefd6714a4caab56bc93f8354302cec2f9f45742fa
parent58ae6bb9f9d236f3710e02295d404556e0f99297
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