Skip to content

s390/mm: Deduplicate machine_has_tlb_guest() usage

Heiko Carstens linux-s390 lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390/mm: Remove gmap_asce from mm_context_tarch/s390/include/asm/mmu.h arch/s390/include/asm/mmu_context.h arch/s390/include/asm/tlbflush.h +1 more+7 -410 replies
2/5s390/mm: Remove unused nodat parameter from ptep flush helpersarch/s390/mm/pgtable.c+10 -160 replies
3/5s390/mm: Add ptep_ipte() helperarch/s390/include/asm/pgtable.h arch/s390/kvm/gmap/dat.c arch/s390/mm/pgtable.c+14 -120 replies
4/5s390/mm: Add pmdp_idte() helperarch/s390/include/asm/pgtable.h arch/s390/mm/pgtable.c+14 -140 replies
5/5s390/mm: Add pudp_idte() helperarch/s390/include/asm/pgtable.h arch/s390/mm/pgtable.c+14 -140 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/5] s390/mm: Deduplicate machine_has_tlb_guest() usage

While working on something different there was the need to add yet another machine_has_tlb_guest() check. The machine_has_tlb_guest() check pattern is duplicated all over the place. It seems to make sense to add common helpers instead of duplicating the code again.

This also revealed that the gmap_asce member in mm_context_t is always zero since Claudio's gmap rework. Removing it allows to simplify quite a bit of code.

Code applies on top of linux-next 20261123.

Thanks,
Heiko

Heiko Carstens (5):
s390/mm: Remove gmap_asce from mm_context_t
s390/mm: Remove unused nodat parameter from ptep flush helpers s390/mm: Add ptep_ipte() helper
s390/mm: Add pmdp_idte() helper
s390/mm: Add pudp_idte() helper

 arch/s390/include/asm/mmu.h         |  1 -
 arch/s390/include/asm/mmu_context.h |  1 -
 arch/s390/include/asm/pgtable.h     | 31 ++++++++++
 arch/s390/include/asm/tlbflush.h    | 12 +---
 arch/s390/kvm/gmap/dat.c            |  5 +-
 arch/s390/mm/pgtable.c              | 94 ++++++-----------------------
 6 files changed, 53 insertions(+), 91 deletions(-)

base-commit: 3191063649dbf7c0d0b768e1f3655e4c5fc6edb5

Signature · 1 line
2.53.0