x86/spec_ctrl: Read MSR_ARCH_CAPABILITIES only once
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 26 Apr 2018 11:21:00 +0000 (12:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 16 May 2018 11:19:10 +0000 (12:19 +0100)
commitd6c65187252a6c1810fd24c4d46f812840de8d3c
tree26c05a76bbcf84ef8ef7d314a92c84dc88a3a619
parent2adc90908fbb1e614c477e29f2d45eda94570795
x86/spec_ctrl: Read MSR_ARCH_CAPABILITIES only once

Make it available from the beginning of init_speculation_mitigations(), and
pass it into appropriate functions.  Fix an RSBA typo while moving the
affected comment.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/spec_ctrl.c