x86/xstate: re-use valid_xcr0() for boot-time checks
authorJan Beulich <jbeulich@suse.com>
Tue, 4 May 2021 08:50:32 +0000 (10:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 May 2021 08:50:32 +0000 (10:50 +0200)
commite927a3b89ae82ac875aafedbefd6b4bc46201b7d
treeedd5b31610c1ea0665b6d7c65abdfaa2aeebb18c
parent48bb237fca65e2bcec7dbe7f4b178cf33c5e15f0
x86/xstate: re-use valid_xcr0() for boot-time checks

Instead of (just partially) open-coding it, re-use the function after
suitably moving it up.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/xstate.c