mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Claudio Imbrenda <imbrenda@linux.ibm.com>
To: Heiko Carstens <hca@linux.ibm.com>
Cc: 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>,
	linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] s390/mm: Deduplicate machine_has_tlb_guest() usage
Date: Tue, 24 Nov 2026 18:00:30 +0100	[thread overview]
Message-ID: <20261124180030.35caca96@p-imbrenda> (raw)
In-Reply-To: <20261124135948.1295745-1-hca@linux.ibm.com>

On Tue, 24 Nov 2026 14:59:43 +0100
Heiko Carstens <hca@linux.ibm.com> wrote:

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

Moving the checks inside the helper is the cleanest way. I was already
working to do this for KVM too.


Whole series:

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

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


      parent reply	other threads:[~2026-11-24 18:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
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 17:00 ` Claudio Imbrenda [this message]

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=20261124180030.35caca96@p-imbrenda \
    --to=imbrenda@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=hca@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®