Skip to content

powerpc: branch cache flush changes

Nicholas Piggin linuxppc-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7powerpc/security: re-name count cache flush to branch cache flusharch/powerpc/include/asm/asm-prototypes.h arch/powerpc/kernel/entry_64.S arch/powerpc/kernel/security.c+23 -240 replies
2/7powerpc/security: change link stack flush state to the flush type enumarch/powerpc/kernel/security.c+5 -50 replies
3/7powerpc/security: make display of branch cache flush more consistentarch/powerpc/kernel/security.c+4 -40 replies
4/7powerpc/security: split branch cache flush toggle from code patchingarch/powerpc/kernel/security.c+51 -430 replies
5/7powerpc/64s: Move branch cache flushing bcctr variant to ppc-ops.harch/powerpc/include/asm/ppc-opcode.h arch/powerpc/kernel/entry_64.S+4 -40 replies
6/7powerpc/security: Allow for processors that flush the link stack using the special bcctrarch/powerpc/include/asm/security_features.h arch/powerpc/kernel/security.c+21 -80 replies
7/7powerpc/64s: advertise hardware link stack flusharch/powerpc/include/asm/hvcall.h arch/powerpc/include/uapi/asm/kvm.h arch/powerpc/kvm/powerpc.c +3 more+16 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] powerpc: branch cache flush changes

This series allows the link stack to be flushed with the speical bcctr 2,0,0 flush instruction that also flushes the count cache if the processor supports it.

Firmware does not support this at the moment, but I've tested it in simulator with a patched firmware to advertise support.

Thanks,
Nick

Nicholas Piggin (7):
powerpc/security: re-name count cache flush to branch cache flush powerpc/security: change link stack flush state to the flush type enum powerpc/security: make display of branch cache flush more consistent powerpc/security: split branch cache flush toggle from code patching powerpc/64s: Move branch cache flushing bcctr variant to ppc-ops.h powerpc/security: Allow for processors that flush the link stack using
the special bcctr
powerpc/64s: advertise hardware link stack flush

 arch/powerpc/include/asm/asm-prototypes.h    |   4 +-
 arch/powerpc/include/asm/hvcall.h            |   1 +
 arch/powerpc/include/asm/ppc-opcode.h        |   2 +
 arch/powerpc/include/asm/security_features.h |   2 +
 arch/powerpc/include/uapi/asm/kvm.h          |   1 +
 arch/powerpc/kernel/entry_64.S               |  13 +-
 arch/powerpc/kernel/security.c               | 139 +++++++++++--------
 arch/powerpc/kvm/powerpc.c                   |   9 +-
 arch/powerpc/platforms/powernv/setup.c       |   3 +
 arch/powerpc/platforms/pseries/setup.c       |   3 +
 tools/arch/powerpc/include/uapi/asm/kvm.h    |   1 +
 11 files changed, 106 insertions(+), 72 deletions(-)
Signature · 1 line
2.23.0