libx86: Introduce wrappers for extracting XCR0/XSS from a cpuid policy
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 22 May 2019 17:39:23 +0000 (18:39 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 23 May 2019 14:54:05 +0000 (15:54 +0100)
commitad8e6232d5897eab052596389ccb8eb8f1d850a1
tree0b8947c77379807f729673fc98fd62f84fa2f296
parent3c16684d062965c5c9dc411f602ec31700ed9ace
libx86: Introduce wrappers for extracting XCR0/XSS from a cpuid policy

This avoids opencoding the slightly-awkward logic.  More uses of these
wrappers will be introduced shortly.

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