Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH 0/5] s390/mm: Deduplicate machine_has_tlb_guest() usage
@ 2026-11-24 13:59 Heiko Carstens
  2026-11-24 13:59 ` [PATCH 1/5] s390/mm: Remove gmap_asce from mm_context_t Heiko Carstens
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Heiko Carstens @ 2026-11-24 13:59 UTC (permalink / raw)
  To: Claudio Imbrenda, Janosch Frank, Alexander Gordeev, Sven Schnelle,
	Vasily Gorbik, Christian Borntraeger, Gerald Schaefer
  Cc: linux-s390, linux-kernel

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
-- 
2.53.0


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

end of thread, other threads:[~2026-11-24 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 13:59 [PATCH 0/5] s390/mm: Deduplicate machine_has_tlb_guest() usage Heiko Carstens
2026-11-24 13:59 ` [PATCH 1/5] s390/mm: Remove gmap_asce from mm_context_t Heiko Carstens
2026-11-24 13:59 ` [PATCH 2/5] s390/mm: Remove unused nodat parameter from ptep flush helpers Heiko Carstens
2026-11-24 13:59 ` [PATCH 3/5] s390/mm: Add ptep_ipte() helper Heiko Carstens
2026-11-24 13:59 ` [PATCH 4/5] s390/mm: Add pmdp_idte() helper Heiko Carstens
2026-11-24 13:59 ` [PATCH 5/5] s390/mm: Add pudp_idte() helper Heiko Carstens
2026-11-24 14:07 ` [PATCH 0/5] s390/mm: Deduplicate machine_has_tlb_guest() usage sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox