mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86/spec-ctrl: Make VERW flushing runtime conditional
Currently, VERW flushing to mitigate MDS is boot time conditional per domain type. However, to provide mitigations for DRPW (CVE-2022-21166), we need to conditionally use VERW based on the trustworthiness of the guest, and the devices passed through. Remove the PV/HVM alternatives and instead issue a VERW on the return-to-guest path depending on the SCF_verw bit in cpuinfo spec_ctrl_flags. Introduce spec_ctrl_init_domain() and d->arch.verw to calculate the VERW disposition at domain creation time, and context switch the SCF_verw bit. For now, VERW flushing is used and controlled exactly as before, but later patches will add per-domain cases too. No change in behaviour. This is part of XSA-404. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
This commit is contained in:
1 parent
3c2a14ea81
commit
e06b95c1d4
8 files changed
+51
-22
No files matched your search
@@ -2282,9 +2282,8 @@ in place for guests to use.
|
||||
Use of a positive boolean value for either of these options is invalid.
|
||||
|
||||
The booleans `pv=`, `hvm=`, `msr-sc=`, `rsb=` and `md-clear=` offer fine
|
||||
grained control over the alternative blocks used by Xen. These impact Xen's
|
||||
ability to protect itself, and Xen's ability to virtualise support for guests
|
||||
to use.
|
||||
grained control over the primitives by Xen. These impact Xen's ability to
|
||||
protect itself, and Xen's ability to virtualise support for guests to use.
|
||||
|
||||
* `pv=` and `hvm=` offer control over all suboptions for PV and HVM guests
|
||||
respectively.
|
||||
|
||||