]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: use capabilities instead of fake cpuid values for mtrr
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 07:21:05 +0000 (09:21 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:13:48 +0000 (11:13 +0200)
commit6382cae56c057e019f4c57971ba65ed3b964b4da
treecbe17c0ec523085115a525cf14fe26117b8bdbea
parent481ed18c646bd9ced47660f18b3340bd6187d9a1
x86/xen: use capabilities instead of fake cpuid values for mtrr

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