]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: use capabilities instead of fake cpuid values for mwait
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 10:37:00 +0000 (12:37 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:14:05 +0000 (11:14 +0200)
commitc8c2ee2cf6b586a4d53b2bad0859cf300c011a94
treeeb66edc411c539f50193f4a4e5f5658a811251b2
parent9f1c53849a37bf4109139d6c8cd8c23a90011709
x86/xen: use capabilities instead of fake cpuid values for mwait

When running as pv domain xen_cpuid() is being used instead of
native_cpuid(). In xen_cpuid() the mwait feature is indicated to be
present or not by special casing the related cpuid leaf.

Instead of delivering fake cpuid values use the cpu capability bit
for mwait 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