All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] SSBD via LS_CFG
@ 2018-08-27 16:54 Brian Woods
  2018-08-27 16:54 ` [PATCH v3 1/2] x86/spec-ctrl: add AMD SSBD LS_CFG in init print Brian Woods
  2018-08-27 16:55 ` [PATCH v3 2/2] x86/spec-ctrl: add support for modifying SSBD via LS_CFG MSR Brian Woods
  0 siblings, 2 replies; 7+ messages in thread
From: Brian Woods @ 2018-08-27 16:54 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Brian Woods, Jan Beulich

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(-)

-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-31  6:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 16:54 [PATCH v3 0/2] SSBD via LS_CFG Brian Woods
2018-08-27 16:54 ` [PATCH v3 1/2] x86/spec-ctrl: add AMD SSBD LS_CFG in init print Brian Woods
2018-08-30 15:44   ` Jan Beulich
2018-08-27 16:55 ` [PATCH v3 2/2] x86/spec-ctrl: add support for modifying SSBD via LS_CFG MSR Brian Woods
2018-08-30 15:49   ` Jan Beulich
2018-08-30 18:09     ` Brian Woods
2018-08-31  6:26       ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.