public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 00/10] KVM: s390: spring cleanup
@ 2026-03-16 16:23 Janosch Frank
  2026-03-16 16:23 ` [RFC 01/10] KVM: s390: diag258: Pass absolute address to kvm_is_gpa_in_memslot() Janosch Frank
                   ` (9 more replies)
  0 siblings, 10 replies; 39+ messages in thread
From: Janosch Frank @ 2026-03-16 16:23 UTC (permalink / raw)
  To: kvm; +Cc: linux-s390, imbrenda, borntraeger, akrowiak

When looking into the new gmap code I also had a look into our
handling of addresses as a whole. I've found that we have a lot of
unsigned long variables which could be gpa_t or gva_t. There's code
where we could use provided functions for calculations like gfn
shifting and in general we have a lot of magic constants left which
could be defined constants. Some of these contants are already in our
code base anyway...

This series tries to clean up some of these problems. 
I have more commits that also introduce new types for real and logical
addresses but these have to wait until I see a real benefit.

Janosch Frank (10):
  KVM: s390: diag258: Pass absolute address to kvm_is_gpa_in_memslot()
  KVM: s390: Consolidate lpswe variants
  KVM: s390: Convert shifts to gpa_to_gfn()
  KVM: s390: kvm_s390_real_to_abs() should return gpa_t
  KVM: s390: vsie: Cleanup and fixup of crycb handling
  KVM: s390: Rework lowcore access functions
  KVM: s390: Use gpa_t and gva_t in gaccess files
  KVM: s390: Use gpa_t in priv.c
  KVM: s390: Use gpa_t in pv.c
  KVM: s390: Cleanup kvm_s390_store_status_unloaded

 arch/s390/include/asm/kvm_host.h |  6 +++
 arch/s390/kvm/diag.c             |  2 +-
 arch/s390/kvm/gaccess.c          | 20 ++++-----
 arch/s390/kvm/gaccess.h          | 49 ++++++++++++++-------
 arch/s390/kvm/interrupt.c        |  4 +-
 arch/s390/kvm/kvm-s390.c         | 24 +++++++----
 arch/s390/kvm/kvm-s390.h         | 12 +++---
 arch/s390/kvm/priv.c             | 73 +++++++++++++++-----------------
 arch/s390/kvm/pv.c               | 12 +++---
 arch/s390/kvm/vsie.c             | 50 +++++++++++-----------
 10 files changed, 138 insertions(+), 114 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2026-03-23 15:54 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 16:23 [RFC 00/10] KVM: s390: spring cleanup Janosch Frank
2026-03-16 16:23 ` [RFC 01/10] KVM: s390: diag258: Pass absolute address to kvm_is_gpa_in_memslot() Janosch Frank
2026-03-16 18:34   ` Christian Borntraeger
2026-03-17 10:01   ` Christoph Schlameuss
2026-03-18 16:04   ` Claudio Imbrenda
2026-03-16 16:23 ` [RFC 02/10] KVM: s390: Consolidate lpswe variants Janosch Frank
2026-03-16 18:47   ` Christian Borntraeger
2026-03-17  8:13     ` Janosch Frank
2026-03-17 13:03     ` [PATCH] KVM: s390: Fix lpsw/e breaking event handling Janosch Frank
2026-03-17 13:30       ` Christian Borntraeger
2026-03-23 15:08       ` Hendrik Brueckner
2026-03-16 16:23 ` [RFC 03/10] KVM: s390: Convert shifts to gpa_to_gfn() Janosch Frank
2026-03-16 18:49   ` Christian Borntraeger
2026-03-17 10:38   ` Christoph Schlameuss
2026-03-18 14:26   ` Claudio Imbrenda
2026-03-16 16:23 ` [RFC 04/10] KVM: s390: kvm_s390_real_to_abs() should return gpa_t Janosch Frank
2026-03-16 18:53   ` Christian Borntraeger
2026-03-18  7:10   ` Christoph Schlameuss
2026-03-18 14:29   ` Claudio Imbrenda
2026-03-16 16:23 ` [RFC 05/10] KVM: s390: vsie: Cleanup and fixup of crycb handling Janosch Frank
2026-03-18 14:13   ` Christoph Schlameuss
2026-03-18 16:48   ` Claudio Imbrenda
2026-03-20 12:01   ` Anthony Krowiak
2026-03-23 15:54     ` Janosch Frank
2026-03-16 16:23 ` [RFC 06/10] KVM: s390: Rework lowcore access functions Janosch Frank
2026-03-18 14:25   ` Claudio Imbrenda
2026-03-23  9:11   ` Christoph Schlameuss
2026-03-16 16:23 ` [RFC 07/10] KVM: s390: Use gpa_t and gva_t in gaccess files Janosch Frank
2026-03-18 15:36   ` Claudio Imbrenda
2026-03-23  9:10   ` Christoph Schlameuss
2026-03-16 16:23 ` [RFC 08/10] KVM: s390: Use gpa_t in priv.c Janosch Frank
2026-03-18 16:02   ` Claudio Imbrenda
2026-03-23  9:28   ` Christoph Schlameuss
2026-03-16 16:23 ` [RFC 09/10] KVM: s390: Use gpa_t in pv.c Janosch Frank
2026-03-18 15:46   ` Claudio Imbrenda
2026-03-23  9:41   ` Christoph Schlameuss
2026-03-16 16:23 ` [RFC 10/10] KVM: s390: Cleanup kvm_s390_store_status_unloaded Janosch Frank
2026-03-18 15:51   ` Claudio Imbrenda
2026-03-23  9:47   ` Christoph Schlameuss

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