x86: check feature flags after resume
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Apr 2018 12:10:33 +0000 (14:10 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Apr 2018 12:10:33 +0000 (14:10 +0200)
commitbb502a8ca59252dfd5a7170cc59321b59ac8c2b7
tree53f7d69b293b2ff5943acaef245747c221115eb0
parent710a8ebf2bc111a34bba04d1c85b6d07ed3d9389
x86: check feature flags after resume

Make sure no previously present features are missing after resume (and
the re-loading of microcode), to avoid later crashes or (likely silent)
hangs / live locks. This doesn't go beyond checking x86_capability[],
but this should be good enough for the immediate need of making sure
that the BIT mitigation MSRs are still available.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/acpi/power.c
xen/arch/x86/cpu/common.c
xen/arch/x86/cpuid.c
xen/arch/x86/smpboot.c
xen/include/asm-x86/cpuid.h