x86/xen: use capabilities instead of fake cpuid values for aperf
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 06:27:07 +0000 (08:27 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:13:42 +0000 (11:13 +0200)
commitfd9145fd270c7d152853219b8b44210026fa3c02
tree92b923bbd5770407a78592b6f1b66f297c1e7e4c
parent3ee99df333a0ac57c3bd8155dfa56fc275668f88
x86/xen: use capabilities instead of fake cpuid values for aperf

When running as pv domain xen_cpuid() is being used instead of
native_cpuid(). In xen_cpuid() the aperf/mperf feature is indicated
as not being present by special casing the related cpuid leaf.

Instead of delivering fake cpuid values clear the cpu capability bit
for aperf/mperf instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten_pv.c