x86/xen: use capabilities instead of fake cpuid values for acc
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 07:24:01 +0000 (09:24 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:13:53 +0000 (11:13 +0200)
commitaa1071562937d1b66b07db48e3dbafe136027f01
treeedd2a52945b8affb77c641132d6c92c4884e5c0a
parent88f3256f21d958d0773bf93523ad12d2ddaf3006
x86/xen: use capabilities instead of fake cpuid values for acc

When running as pv domain xen_cpuid() is being used instead of
native_cpuid(). In xen_cpuid() the acc feature (thermal monitoring)
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 acc 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