]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1cf104315cd13731444af22a3165f976c04ec44
treeedd2a52945b8affb77c641132d6c92c4884e5c0a
parent6382cae56c057e019f4c57971ba65ed3b964b4da
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