x86/spec-ctrl: Rework spec_ctrl_flags context switching
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Jul 2022 14:59:40 +0000 (15:59 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Jul 2022 15:23:00 +0000 (16:23 +0100)
commit5796912f7279d9348a3166655588d30eae9f72cc
tree8cef901dc63a91acdc51353e40c0cdca6d1e2a2a
parent033ae6f88be198b8f56043f94b7076b79b5e447e
x86/spec-ctrl: Rework spec_ctrl_flags context switching

We are shortly going to need to context switch new bits in both the vcpu and
S3 paths.  Introduce SCF_IST_MASK and SCF_DOM_MASK, and rework d->arch.verw
into d->arch.spec_ctrl_flags to accommodate.

No functional change.

This is part of XSA-407.

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