powerpc: branch cache flush changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | powerpc/security: re-name count cache flush to branch cache flusharch/ arch/ arch/ | +23 | 0 replies | |
| 2/7 | powerpc/security: change link stack flush state to the flush type enumarch/ | +5 | 0 replies | |
| 3/7 | powerpc/security: make display of branch cache flush more consistentarch/ | +4 | 0 replies | |
| 4/7 | powerpc/security: split branch cache flush toggle from code patchingarch/ | +51 | 0 replies | |
| 5/7 | powerpc/64s: Move branch cache flushing bcctr variant to ppc-ops.harch/ arch/ | +4 | 0 replies | |
| 6/7 | powerpc/security: Allow for processors that flush the link stack using the special bcctrarch/ arch/ | +21 | 0 replies | |
| 7/7 | powerpc/64s: advertise hardware link stack flusharch/ arch/ arch/ +3 more | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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