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

2018-12-22 Thread Michael Ellerman
Diana Craciun  writes:
> 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

Hi Diana,

Sorry I already applied v1 a few days ago.

I realise I didn't send out the "applied to next" emails, so my fault
for that.

Can you send me an incremental patch for the changes in v2? Thanks.

cheers


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

2018-12-21 Thread Diana Craciun
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