linux-s390.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC v2 00/11] KVM: s390: Add VSIE SIGP Interpretation (vsie_sigpif)
@ 2025-11-10 17:16 Christoph Schlameuss
  2025-11-10 17:16 ` [PATCH RFC v2 01/11] KVM: s390: Add SCAO read and write helpers Christoph Schlameuss
                   ` (10 more replies)
  0 siblings, 11 replies; 23+ messages in thread
From: Christoph Schlameuss @ 2025-11-10 17:16 UTC (permalink / raw)
  To: kvm
  Cc: linux-s390, Heiko Carstens, Vasily Gorbik, Alexander Gordeev,
	Christian Borntraeger, Janosch Frank, Claudio Imbrenda,
	Nico Boehr, David Hildenbrand, Sven Schnelle, Paolo Bonzini,
	Shuah Khan, Christoph Schlameuss, Hendrik Brueckner

In the upcoming IBM Z machine generation (gen17) the s390x architecture
adds a new VSIE Interpretation Extension Facility (vsie_sigpif) to
improve guest-3 guest performance.

To exploit the new machine support the guest-1 KVM needs to create and
maintain shadow structures pointing to the original state descriptions
and system control areas of currently running guest-3 configurations.
These pointers are followed by the machines firmware and modifications
of the original SCA for guest-3 (located in guest-2) are monitored and
handled by firmware. This results in fewer VSIE exits.

---
There are still some problems with the current state but I think it is
in a good state to gather some feedback.

Known Functional Problems:
- reuse of sca allocation with sigpif enabled does hang

Known Non-Functional Problems:
- Performance of the initial configuration shadowing can be streamlined
- Performance for reentry can likely be improved
- Locking can be improved to allow for more concurrency

---
Christoph Schlameuss (11):
      KVM: s390: Add SCAO read and write helpers
      KVM: s390: Remove double 64bscao feature check
      KVM: s390: Move scao validation into a function
      KVM: s390: Add vsie_sigpif detection
      KVM: s390: Add ssca_block and ssca_entry structs for vsie_ie
      KVM: s390: Add helper to pin multiple guest pages
      KVM: s390: Shadow VSIE SCA in guest-1
      KVM: s390: Allow guest-3 cpu add and remove with vsie sigpif
      KVM: s390: Allow guest-3 switch to extended sca with vsie sigpif
      KVM: s390: Add VSIE shadow configuration
      KVM: s390: Add VSIE shadow stat counters

 arch/s390/include/asm/kvm_host.h               |  16 +-
 arch/s390/include/asm/kvm_host_types.h         |  24 +-
 arch/s390/include/asm/sclp.h                   |   1 +
 arch/s390/kvm/kvm-s390.c                       |  14 +-
 arch/s390/kvm/kvm-s390.h                       |   2 +-
 arch/s390/kvm/vsie.c                           | 852 +++++++++++++++++++++----
 drivers/s390/char/sclp_early.c                 |   1 +
 tools/testing/selftests/kvm/include/s390/sie.h |   2 +-
 8 files changed, 773 insertions(+), 139 deletions(-)
---
base-commit: 62ad2b01b0c7dba966c6843b77e99b06a3b12d27
change-id: 20250228-vsieie-07be34fc3984
prerequisite-change-id: 20250513-rm-bsca-ab1e8649aca7:v7
prerequisite-patch-id: 52dadcc65bc9fddfee7499ed55a3fa909051ab1c
prerequisite-change-id: 20250602-rm-sca-lock-d7c1eca252b1:v2
prerequisite-patch-id: 52dadcc65bc9fddfee7499ed55a3fa909051ab1c
prerequisite-patch-id: 7117176d5763754fc7c1474288bcbe4de567c60e

Best regards,
-- 
Christoph Schlameuss <schlameuss@linux.ibm.com>


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

end of thread, other threads:[~2025-11-11 16:34 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 17:16 [PATCH RFC v2 00/11] KVM: s390: Add VSIE SIGP Interpretation (vsie_sigpif) Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 01/11] KVM: s390: Add SCAO read and write helpers Christoph Schlameuss
2025-11-11 13:45   ` Claudio Imbrenda
2025-11-11 14:37     ` Christoph Schlameuss
2025-11-11 14:55       ` Claudio Imbrenda
2025-11-10 17:16 ` [PATCH RFC v2 02/11] KVM: s390: Remove double 64bscao feature check Christoph Schlameuss
2025-11-10 21:32   ` Eric Farman
2025-11-11  8:13   ` Hendrik Brueckner
2025-11-11 13:20   ` Janosch Frank
2025-11-10 17:16 ` [PATCH RFC v2 03/11] KVM: s390: Move scao validation into a function Christoph Schlameuss
2025-11-10 21:30   ` Eric Farman
2025-11-11  8:48     ` Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 04/11] KVM: s390: Add vsie_sigpif detection Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 05/11] KVM: s390: Add ssca_block and ssca_entry structs for vsie_ie Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 06/11] KVM: s390: Add helper to pin multiple guest pages Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 07/11] KVM: s390: Shadow VSIE SCA in guest-1 Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 08/11] KVM: s390: Allow guest-3 cpu add and remove with vsie sigpif Christoph Schlameuss
2025-11-11 15:47   ` Janosch Frank
2025-11-11 16:34     ` Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 09/11] KVM: s390: Allow guest-3 switch to extended sca " Christoph Schlameuss
2025-11-11 14:18   ` Janosch Frank
2025-11-10 17:16 ` [PATCH RFC v2 10/11] KVM: s390: Add VSIE shadow configuration Christoph Schlameuss
2025-11-10 17:16 ` [PATCH RFC v2 11/11] KVM: s390: Add VSIE shadow stat counters Christoph Schlameuss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).