x86/msr: AMD MSR_SPEC_CTRL infrastructure
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Jan 2022 20:29:09 +0000 (20:29 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 4 Feb 2022 15:45:25 +0000 (15:45 +0000)
commit5c704f0e5ffd609ee98bb2240fe56e1be0611d63
tree7bcaaa601c5a94dc5d8fe03518510b45f349e6e6
parent142c6bd63468b147299f1393e8347d76fe6c3270
x86/msr: AMD MSR_SPEC_CTRL infrastructure

Fill in VMCB accessors for spec_ctrl in svm_{get,set}_reg(), and CPUID checks
for all supported bits in guest_{rd,wr}msr().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 22b9add22b4a9af37305c8441fec12cb26bd142b)
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/msr.c