From: Heiko Carstens <hca@linux.ibm.com>
To: Claudio Imbrenda <imbrenda@linux.ibm.com>,
Janosch Frank <frankja@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 0/5] s390/mm: Deduplicate machine_has_tlb_guest() usage
Date: Tue, 24 Nov 2026 14:59:43 +0100 [thread overview]
Message-ID: <20261124135948.1295745-1-hca@linux.ibm.com> (raw)
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
next reply other threads:[~2026-11-24 13:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 13:59 Heiko Carstens [this message]
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-12-01 12:49 ` Alexander Gordeev
2026-11-24 13:59 ` [PATCH 3/5] s390/mm: Add ptep_ipte() helper Heiko Carstens
2026-11-25 12:15 ` Christian Borntraeger
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
2026-11-24 17:00 ` Claudio Imbrenda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124135948.1295745-1-hca@linux.ibm.com \
--to=hca@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=frankja@linux.ibm.com \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=imbrenda@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=svens@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.