]> 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)
commitfe4341e2b132d452aa3455c237b0defd792f0a2a
treeeb66edc411c539f50193f4a4e5f5658a811251b2
parente75bf1fe2765e71d7788ba06391e9f933027a5c4
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