From: Diana Craciun <diana.craciun@nxp.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: Diana Craciun <diana.craciun@nxp.com>
Subject: [PATCH 00/11 v2] powerpc/fsl: NXP PowerPC Spectre variant 2 workarounds
Date: Fri, 21 Dec 2018 19:30:26 +0200 [thread overview]
Message-ID: <1545413437-5538-1-git-send-email-diana.craciun@nxp.com> (raw)
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
next reply other threads:[~2018-12-21 17:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-21 17:30 Diana Craciun [this message]
2018-12-21 17:30 ` [PATCH 01/11 v2] powerpc/fsl: Add infrastructure to fixup branch predictor flush Diana Craciun
2018-12-21 17:30 ` [PATCH 02/11 v2] powerpc/fsl: Add macro to flush the branch predictor Diana Craciun
2018-12-21 17:30 ` [PATCH 03/11 v2] powerpc/fsl: Fix spectre_v2 mitigations reporting Diana Craciun
2018-12-21 17:30 ` [PATCH 04/11 v2] powerpc/fsl: Emulate SPRN_BUCSR register Diana Craciun
2018-12-21 17:30 ` [PATCH 05/11 v2] powerpc/fsl: Add nospectre_v2 command line argument Diana Craciun
2018-12-21 17:30 ` [PATCH 06/11 v2] powerpc/fsl: Flush the branch predictor at each kernel entry (64bit) Diana Craciun
2018-12-21 17:30 ` [PATCH 07/11 v2] powerpc/fsl: Flush the branch predictor at each kernel entry (32 bit) Diana Craciun
2018-12-21 17:30 ` [PATCH 08/11 v2] powerpc/fsl: Flush branch predictor when entering KVM Diana Craciun
2018-12-21 17:30 ` [PATCH 09/11 v2] powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used Diana Craciun
2018-12-21 17:30 ` [PATCH 10/11 v2] powerpc/fsl: Update Spectre v2 reporting Diana Craciun
2018-12-21 17:30 ` [PATCH 11/11 v2] powerpc/fsl: Add FSL_PPC_BOOK3E as supported arch for nospectre_v2 boot arg Diana Craciun
2018-12-22 10:07 ` [PATCH 00/11 v2] powerpc/fsl: NXP PowerPC Spectre variant 2 workarounds Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1545413437-5538-1-git-send-email-diana.craciun@nxp.com \
--to=diana.craciun@nxp.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).