x86/xen: use capabilities instead of fake cpuid values for xsave
authorJuergen Gross <jgross@suse.com>
Wed, 12 Apr 2017 13:12:09 +0000 (15:12 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:14:17 +0000 (11:14 +0200)
commit6807cf65f5ba6f2902ab64355d71506b9c14a9dd
treef7f5341e15ce11a16060437e22318fae27f5ebe9
parente657fccb799b970bd1f152e22e13f20e0de7adb5
x86/xen: use capabilities instead of fake cpuid values for xsave

When running as pv domain xen_cpuid() is being used instead of
native_cpuid(). In xen_cpuid() the xsave feature availability is
indicated by special casing the related cpuid leaf.

Instead of delivering fake cpuid values set or clear the cpu
capability bits for xsave instead.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten_pv.c