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)
commitf90d98bdd06c0f3d1a60462c85324bd61f2a7142
treefd6714a4caab56bc93f8354302cec2f9f45742fa
parent8714f7bcd3c20d36890f43cc6a8e0c3c17b843aa
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