Skip to content

SSBD via LS_CFG

Brian Woods xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v13 patches 12 repliesSuperseded

Changes in v3 from the cover letter

- moved the SSBD_AMD_LS_CFG synthetic feature from patch 1 to 2 and added ssbd_amd_ls_cfg_av for it's use in patch 1
- in patch 2, only set SSBD_AMD_LS_CFG once everything is known to be ready/good
- since it's later in the boot process due to a v1 change, use nr_sockets
- various smaller changes/cleanups from Jan's feedback

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/spec-ctrl: add AMD SSBD LS_CFG in init printxen/arch/x86/cpu/amd.c xen/arch/x86/spec_ctrl.c xen/include/asm-x86/spec_ctrl.h+20 -51 reply
2/2x86/spec-ctrl: add support for modifying SSBD via LS_CFG MSRxen/arch/x86/cpu/amd.c xen/arch/x86/smpboot.c xen/arch/x86/spec_ctrl.c +2 more+181 -103 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] SSBD via LS_CFG

This series of patches is for enabling SSBD via the LS_CFG MSR for family 15h-17h. The first patch make it so that the information is correctly displayed on boot. The last patch is for further enablement for Xen switching SSBD on or off internally, or for further control of SSBD for guests via the VIRT_SPEC_CTRL.

Note: Patch 1 is standalone and just improves reporting of SSBD in the init print statements. Patch 2 is intended for a later date when there's a C ALTERNATIVE (which I've talked to Andy about some) and will most likely get rolled into series of patches for giving HVM guests control of SSBD when it's only available via LS_CFG.

v1 -> v2:
- changed some variable types
- updated ssbd_amd_ls_cfg_set_nonsmt function
- changed sbd_amd_ls_cfg_init to a presmp_initcall
- deleted ssbd_amd_ls_cfg_set_init due to ^ and it happening later in the boot
- various smaller cleanups
v2 -> v3:
- moved the SSBD_AMD_LS_CFG synthetic feature from patch 1 to 2 and added ssbd_amd_ls_cfg_av for it's use in patch 1
- in patch 2, only set SSBD_AMD_LS_CFG once everything is known to be ready/good
- since it's later in the boot process due to a v1 change, use nr_sockets
- various smaller changes/cleanups from Jan's feedback

Brian Woods (2):
x86/spec-ctrl: add AMD SSBD LS_CFG in init print x86/spec-ctrl: add support for modifying SSBD via LS_CFG MSR

 xen/arch/x86/cpu/amd.c            |  15 ++--
 xen/arch/x86/smpboot.c            |   3 +
 xen/arch/x86/spec_ctrl.c          | 180 +++++++++++++++++++++++++++++++++++++-
 xen/include/asm-x86/cpufeatures.h |   1 +
 xen/include/asm-x86/spec_ctrl.h   |   5 ++
 5 files changed, 195 insertions(+), 9 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel