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)
commite657fccb799b970bd1f152e22e13f20e0de7adb5
treebe320f91e924a8d0c956ffee120efe12319a920c
parentea01598b4bc453ed513e9d482a43c14557042ec9
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