x86/cpuid: Introduce recalculate_xstate()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Jan 2017 15:00:23 +0000 (15:00 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Jan 2017 14:32:30 +0000 (14:32 +0000)
commitaf109224109abb9648ea9720505daeeb06f76e4b
treeb57a6e92501c37ec8542fc23b62a29b28e0da905
parent9b6d4ada2725e1ec6840a6ef7546cdc84a6c623c
x86/cpuid: Introduce recalculate_xstate()

All data in the xstate union, other than the Da1 feature word, is derived from
other state; either feature bits from other words, or layout information which
has already been collected by Xen's xstate driver.

Recalculate the xstate information for each policy object when the feature
bits may have changed.

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