]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6b08205ad2098c991ee588e7d4d2768677d09a3
treef7f5341e15ce11a16060437e22318fae27f5ebe9
parente460fa7fc42f35da3439d180ce89037908ed3103
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