diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-08-30 10:56:07 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-08-30 10:56:07 +0200 |
commit | c6066e78f4a66005b0d5d86c6ade32e2ab78923a (patch) | |
tree | 459867cd02ec02d97349a957aca0933a3e7c3c07 /xen/arch/x86/cpu | |
parent | a497fc19b20e905d3e1b7bf2a845a243d55e0737 (diff) | |
download | xen-c6066e78f4a66005b0d5d86c6ade32e2ab78923a.tar.gz xen-c6066e78f4a66005b0d5d86c6ade32e2ab78923a.tar.bz2 xen-c6066e78f4a66005b0d5d86c6ade32e2ab78923a.zip |
x86/xsave: initialization improvements
- properly validate available feature set on APs
- also validate xsaveopt availability on APs
- properly indicate whether the initialization is on the BSP (we
shouldn't be using "cpu == 0" checks for this)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/cpu')
-rw-r--r-- | xen/arch/x86/cpu/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/cpu/common.c b/xen/arch/x86/cpu/common.c index 24c3dd89ac..e1220e658c 100644 --- a/xen/arch/x86/cpu/common.c +++ b/xen/arch/x86/cpu/common.c @@ -304,7 +304,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c) clear_bit(X86_FEATURE_XSAVE, boot_cpu_data.x86_capability); if ( cpu_has_xsave ) - xstate_init(); + xstate_init(c == &boot_cpu_data); /* * The vendor-specific functions might have changed features. Now |