]> 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)
commite460fa7fc42f35da3439d180ce89037908ed3103
treebe320f91e924a8d0c956ffee120efe12319a920c
parentfe4341e2b132d452aa3455c237b0defd792f0a2a
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