x86/xsave: initialization improvements
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2013 08:56:07 +0000 (10:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2013 08:56:07 +0000 (10:56 +0200)
commitc6066e78f4a66005b0d5d86c6ade32e2ab78923a
tree459867cd02ec02d97349a957aca0933a3e7c3c07
parenta497fc19b20e905d3e1b7bf2a845a243d55e0737
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>
xen/arch/x86/cpu/common.c
xen/arch/x86/xstate.c
xen/include/asm-x86/xstate.h