x86/Intel: Mitigations for GPZ SP4 - Speculative Store Bypass

To combat GPZ SP4 "Speculative Store Bypass", Intel have extended their
speculative sidechannel mitigations specification as follows:

 * A feature bit to indicate that Speculative Store Bypass Disable is
   supported.
 * A new bit in MSR_SPEC_CTRL which, when set, disables memory disambiguation
   in the pipeline.
 * A new bit in MSR_ARCH_CAPABILITIES, which will be set in future hardware,
   indicating that the hardware is not susceptible to Speculative Store Bypass
   sidechannels.

For contemporary processors, this interface will be implemented via a
microcode update.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 9df52a25e0
master date: 2018-05-21 14:20:06 +0100
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2018-05-29 10:39:07 +02:00
1 parent 88f810af57
commit 55c1e8486b
8 files changed
+42 -14

No files matched your search

+7 -5
View File
@@ -442,9 +442,10 @@ accounting for hardware capabilities as enumerated via CPUID.
Currently accepted:
The Speculation Control hardware features `ibrsb`, `stibp`, `ibpb` are used by
default if avaiable. They can be ignored, e.g. `no-ibrsb`, at which point Xen
won't use them itself, and won't offer them to guests.
The Speculation Control hardware features `ibrsb`, `stibp`, `ibpb`, `ssbd` are
used by default if available and applicable. They can be ignored,
e.g. `no-ibrsb`, at which point Xen won't use them itself, and won't offer
them to guests.
### cpuid\_mask\_cpu (AMD only)
> `= fam_0f_rev_c | fam_0f_rev_d | fam_0f_rev_e | fam_0f_rev_f | fam_0f_rev_g | fam_10_rev_b | fam_10_rev_c | fam_11_rev_b`
@@ -1473,7 +1474,7 @@ protect itself, and Xen's ability to virtualise support for guests to use.
respectively.
* `msr-sc=` offers control over Xen's support for manipulating MSR\_SPEC\_CTRL
on entry and exit. These blocks are necessary to virtualise support for
guests and if disabled, guests will be unable to use IBRS/STIBP/etc.
guests and if disabled, guests will be unable to use IBRS/STIBP/SSBD/etc.
* `rsb=` offers control over whether to overwrite the Return Stack Buffer /
Return Address Stack on entry to Xen.
@@ -1495,7 +1496,8 @@ prediction barriers on vcpu context switches.
On hardware supporting SSBD (Speculative Store Bypass Disable), the `ssbd=`
option can be used to force or prevent Xen using the feature itself. On AMD
hardware, this is a global option applied at boot, and not virtualised for
guest use.
guest use. On Intel hardware, the feature is virtualised for guests,
independently of Xen's choice of setting.
### sync\_console
> `= <boolean>`
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.