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)
commit88f3256f21d958d0773bf93523ad12d2ddaf3006
treecbe17c0ec523085115a525cf14fe26117b8bdbea
parentfd9145fd270c7d152853219b8b44210026fa3c02
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