All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/23] arm64: 4.9 backport of the SSBD mitigation patches
@ 2018-07-20  9:56 Marc Zyngier
  2018-07-20  9:56 ` [PATCH 01/23] arm64: assembler: introduce ldr_this_cpu Marc Zyngier
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: Marc Zyngier @ 2018-07-20  9:56 UTC (permalink / raw)
  To: stable; +Cc: Will Deacon, Catalin Marinas, Mark Rutland, Christoffer Dall

This is the backport of the arm64 SSBD patches to 4.9. I've had to
cherry-pick a number of dependencies:

- The ldr_this_cpu macro
- parts of the SDEI series that allow tpidr_el2 to be used as the
  per-cpu offset
- one patch from the VHE series that introduce vcpu retrieval as a
  per-cpu variable
- one patch from the the EL2 randomisation series, allowing relative
  addressing of global structures
- the dynamic patching infrastructure

Christoffer Dall (1):
  KVM: arm64: Avoid storing the vcpu pointer on the stack

James Morse (5):
  KVM: arm64: Store vcpu on the stack during __guest_enter()
  KVM: arm/arm64: Convert kvm_host_cpu_state to a static per-cpu
    allocation
  KVM: arm64: Change hyp_panic()s dependency on tpidr_el2
  arm64: alternatives: use tpidr_el2 on VHE hosts
  KVM: arm64: Stop save/restoring host tpidr_el1 on VHE

Marc Zyngier (16):
  arm64: alternatives: Add dynamic patching feature
  KVM: arm/arm64: Do not use kern_hyp_va() with kvm_vgic_global_state
  arm/arm64: smccc: Add SMCCC-specific return codes
  arm64: Call ARCH_WORKAROUND_2 on transitions between EL0 and EL1
  arm64: Add per-cpu infrastructure to call ARCH_WORKAROUND_2
  arm64: Add ARCH_WORKAROUND_2 probing
  arm64: Add 'ssbd' command-line option
  arm64: ssbd: Add global mitigation state accessor
  arm64: ssbd: Skip apply_ssbd if not using dynamic mitigation
  arm64: ssbd: Restore mitigation status on CPU resume
  arm64: ssbd: Introduce thread flag to control userspace mitigation
  arm64: ssbd: Add prctl interface for per-thread mitigation
  arm64: KVM: Add HYP per-cpu accessors
  arm64: KVM: Add ARCH_WORKAROUND_2 support for guests
  arm64: KVM: Handle guest's ARCH_WORKAROUND_2 requests
  arm64: KVM: Add ARCH_WORKAROUND_2 discovery through
    ARCH_FEATURES_FUNC_ID

Mark Rutland (1):
  arm64: assembler: introduce ldr_this_cpu

 Documentation/kernel-parameters.txt  |  17 +++
 arch/arm/include/asm/kvm_host.h      |  12 ++
 arch/arm/include/asm/kvm_mmu.h       |  12 ++
 arch/arm/kvm/arm.c                   |  24 ++--
 arch/arm/kvm/psci.c                  |  18 ++-
 arch/arm64/Kconfig                   |   9 ++
 arch/arm64/include/asm/alternative.h |  43 ++++++-
 arch/arm64/include/asm/assembler.h   |  27 +++-
 arch/arm64/include/asm/cpucaps.h     |   3 +-
 arch/arm64/include/asm/cpufeature.h  |  22 ++++
 arch/arm64/include/asm/kvm_asm.h     |  41 ++++++
 arch/arm64/include/asm/kvm_host.h    |  43 +++++++
 arch/arm64/include/asm/kvm_mmu.h     |  44 +++++++
 arch/arm64/include/asm/percpu.h      |  12 +-
 arch/arm64/include/asm/thread_info.h |   1 +
 arch/arm64/kernel/Makefile           |   1 +
 arch/arm64/kernel/alternative.c      |  54 +++++---
 arch/arm64/kernel/asm-offsets.c      |   2 +
 arch/arm64/kernel/cpu_errata.c       | 180 +++++++++++++++++++++++++++
 arch/arm64/kernel/cpufeature.c       |  17 +++
 arch/arm64/kernel/entry.S            |  32 ++++-
 arch/arm64/kernel/hibernate.c        |  11 ++
 arch/arm64/kernel/ssbd.c             | 108 ++++++++++++++++
 arch/arm64/kernel/suspend.c          |   8 ++
 arch/arm64/kvm/hyp-init.S            |   4 +
 arch/arm64/kvm/hyp/entry.S           |  12 +-
 arch/arm64/kvm/hyp/hyp-entry.S       |  62 +++++++--
 arch/arm64/kvm/hyp/switch.c          |  64 +++++++---
 arch/arm64/kvm/hyp/sysreg-sr.c       |  21 ++--
 arch/arm64/kvm/reset.c               |   4 +
 include/linux/arm-smccc.h            |  10 ++
 virt/kvm/arm/hyp/vgic-v2-sr.c        |   2 +-
 32 files changed, 835 insertions(+), 85 deletions(-)
 create mode 100644 arch/arm64/kernel/ssbd.c

-- 
2.18.0

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

end of thread, other threads:[~2018-07-20 11:31 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-20  9:56 [PATCH 00/23] arm64: 4.9 backport of the SSBD mitigation patches Marc Zyngier
2018-07-20  9:56 ` [PATCH 01/23] arm64: assembler: introduce ldr_this_cpu Marc Zyngier
2018-07-20  9:56 ` [PATCH 02/23] KVM: arm64: Store vcpu on the stack during __guest_enter() Marc Zyngier
2018-07-20  9:56 ` [PATCH 03/23] KVM: arm/arm64: Convert kvm_host_cpu_state to a static per-cpu allocation Marc Zyngier
2018-07-20  9:56 ` [PATCH 04/23] KVM: arm64: Change hyp_panic()s dependency on tpidr_el2 Marc Zyngier
2018-07-20  9:56 ` [PATCH 05/23] arm64: alternatives: use tpidr_el2 on VHE hosts Marc Zyngier
2018-07-20  9:56 ` [PATCH 06/23] KVM: arm64: Stop save/restoring host tpidr_el1 on VHE Marc Zyngier
2018-07-20  9:56 ` [PATCH 07/23] arm64: alternatives: Add dynamic patching feature Marc Zyngier
2018-07-20  9:56 ` [PATCH 08/23] KVM: arm/arm64: Do not use kern_hyp_va() with kvm_vgic_global_state Marc Zyngier
2018-07-20  9:56 ` [PATCH 09/23] KVM: arm64: Avoid storing the vcpu pointer on the stack Marc Zyngier
2018-07-20  9:56 ` [PATCH 10/23] arm/arm64: smccc: Add SMCCC-specific return codes Marc Zyngier
2018-07-20  9:56 ` [PATCH 11/23] arm64: Call ARCH_WORKAROUND_2 on transitions between EL0 and EL1 Marc Zyngier
2018-07-20  9:56 ` [PATCH 12/23] arm64: Add per-cpu infrastructure to call ARCH_WORKAROUND_2 Marc Zyngier
2018-07-20  9:56 ` [PATCH 13/23] arm64: Add ARCH_WORKAROUND_2 probing Marc Zyngier
2018-07-20  9:56 ` [PATCH 14/23] arm64: Add 'ssbd' command-line option Marc Zyngier
2018-07-20  9:56 ` [PATCH 15/23] arm64: ssbd: Add global mitigation state accessor Marc Zyngier
2018-07-20  9:56 ` [PATCH 16/23] arm64: ssbd: Skip apply_ssbd if not using dynamic mitigation Marc Zyngier
2018-07-20  9:56 ` [PATCH 17/23] arm64: ssbd: Restore mitigation status on CPU resume Marc Zyngier
2018-07-20  9:56 ` [PATCH 18/23] arm64: ssbd: Introduce thread flag to control userspace mitigation Marc Zyngier
2018-07-20  9:56 ` [PATCH 19/23] arm64: ssbd: Add prctl interface for per-thread mitigation Marc Zyngier
2018-07-20  9:56 ` [PATCH 20/23] arm64: KVM: Add HYP per-cpu accessors Marc Zyngier
2018-07-20  9:56 ` [PATCH 21/23] arm64: KVM: Add ARCH_WORKAROUND_2 support for guests Marc Zyngier
2018-07-20  9:56 ` [PATCH 22/23] arm64: KVM: Handle guest's ARCH_WORKAROUND_2 requests Marc Zyngier
2018-07-20  9:56 ` [PATCH 23/23] arm64: KVM: Add ARCH_WORKAROUND_2 discovery through ARCH_FEATURES_FUNC_ID Marc Zyngier
2018-07-20 10:43 ` [PATCH 00/23] arm64: 4.9 backport of the SSBD mitigation patches Greg KH

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.