]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitea01598b4bc453ed513e9d482a43c14557042ec9
treeeb66edc411c539f50193f4a4e5f5658a811251b2
parentb778d6bf63e0a07ceb2258ce9bd996dbaaa11bfa
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