[PATCH 00/11 v2] powerpc/fsl: NXP PowerPC Spectre variant 2 workarounds

Diana Craciun diana.craciun at nxp.com
Sat Dec 22 04:30:26 AEDT 2018


Implement Spectre variant 2 workarounds for NXP PowerPC Book3E
processors.

Diana Craciun (11):
  Add infrastructure to fixup branch predictor flush
  Add macro to flush the branch predictor
  Fix spectre_v2 mitigations reporting
  Emulate SPRN_BUCSR register
  Add nospectre_v2 command line argument
  Flush the branch predictor at each kernel entry (64bit)
  Flush the branch predictor at each kernel entry (32 bit)
  Flush branch predictor when entering KVM
  Enable runtime patching if nospectre_v2 boot arg is used
  Update Spectre v2 reporting
  Add FSL_PPC_BOOK3E as supported arch for nospectre_v2 boot arg

 Documentation/admin-guide/kernel-parameters.txt |  2 +-
 arch/powerpc/include/asm/feature-fixups.h       | 12 +++++++++++
 arch/powerpc/include/asm/ppc_asm.h              | 10 +++++++++
 arch/powerpc/include/asm/setup.h                |  7 +++++++
 arch/powerpc/kernel/entry_64.S                  |  5 +++++
 arch/powerpc/kernel/exceptions-64e.S            | 26 ++++++++++++++++++++++-
 arch/powerpc/kernel/head_booke.h                | 11 ++++++++++
 arch/powerpc/kernel/head_fsl_booke.S            | 15 +++++++++++++
 arch/powerpc/kernel/security.c                  | 28 +++++++++++++++++++++++--
 arch/powerpc/kernel/setup-common.c              |  1 +
 arch/powerpc/kernel/vmlinux.lds.S               |  8 +++++++
 arch/powerpc/kvm/bookehv_interrupts.S           |  4 ++++
 arch/powerpc/kvm/e500_emulate.c                 |  5 +++++
 arch/powerpc/lib/feature-fixups.c               | 21 +++++++++++++++++++
 arch/powerpc/mm/tlb_low_64e.S                   |  7 +++++++
 15 files changed, 158 insertions(+), 4 deletions(-)

-- 
2.5.5



More information about the Linuxppc-dev mailing list