]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: use capabilities instead of fake cpuid values for x2apic
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 10:45:57 +0000 (12:45 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:14:11 +0000 (11:14 +0200)
commit4beaf6475bad2e67201995fdfae2185db2dd7132
treebe320f91e924a8d0c956ffee120efe12319a920c
parentc8c2ee2cf6b586a4d53b2bad0859cf300c011a94
x86/xen: use capabilities instead of fake cpuid values for x2apic

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