public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] KVM: s390: add counters for vsie performance
@ 2023-10-09  9:32 Nico Boehr
  2023-10-09  9:32 ` [PATCH v4 1/2] KVM: s390: add stat counter for shadow gmap events Nico Boehr
  2023-10-09  9:32 ` [PATCH v4 2/2] KVM: s390: add tracepoint in gmap notifier Nico Boehr
  0 siblings, 2 replies; 7+ messages in thread
From: Nico Boehr @ 2023-10-09  9:32 UTC (permalink / raw)
  To: borntraeger, frankja, imbrenda, david; +Cc: kvm, linux-s390

v4:
---
* fix indent in tracepoint (thanks Janosch)

v3:
---
* rename te -> entry (David)
* add counters for gmap reuse and gmap create (David)

v2:
---
* also count shadowing of pages (Janosch)
* fix naming of counters (Janosch)
* mention shadowing of multiple levels is counted in each level (Claudio)
* fix inaccuate commit description regarding gmap notifier (Claudio)

When running a guest-3 via VSIE, guest-1 needs to shadow the page table
structures of guest-2.

To reflect changes of the guest-2 in the _shadowed_ page table structures,
the _shadowing_ sturctures sometimes need to be rebuilt. Since this is a
costly operation, it should be avoided whenever possible.

This series adds kvm stat counters to count the number of shadow gmaps
created and a tracepoint whenever something is unshadowed. This is a first
step to try and improve VSIE performance.

Please note that "KVM: s390: add tracepoint in gmap notifier" has some
checkpatch --strict findings. I did not fix these since the tracepoint
definition would then look completely different from all the other
tracepoints in arch/s390/kvm/trace-s390.h. If you want me to fix that,
please let me know.

Nico Boehr (2):
  KVM: s390: add stat counter for shadow gmap events
  KVM: s390: add tracepoint in gmap notifier

 arch/s390/include/asm/kvm_host.h |  7 +++++++
 arch/s390/kvm/gaccess.c          |  7 +++++++
 arch/s390/kvm/kvm-s390.c         | 11 ++++++++++-
 arch/s390/kvm/trace-s390.h       | 23 +++++++++++++++++++++++
 arch/s390/kvm/vsie.c             |  5 ++++-
 5 files changed, 51 insertions(+), 2 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-10-09 13:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09  9:32 [PATCH v4 0/2] KVM: s390: add counters for vsie performance Nico Boehr
2023-10-09  9:32 ` [PATCH v4 1/2] KVM: s390: add stat counter for shadow gmap events Nico Boehr
2023-10-09 13:20   ` Claudio Imbrenda
2023-10-09 13:31   ` Janosch Frank
2023-10-09  9:32 ` [PATCH v4 2/2] KVM: s390: add tracepoint in gmap notifier Nico Boehr
2023-10-09 13:20   ` Claudio Imbrenda
2023-10-09 13:32   ` Janosch Frank

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