Skip to content

kvm-s390: revised version of kvm-s390 guest memory handling

[email protected] kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm-s390: infrastructure to kick vcpus out of guest statearch/s390/include/asm/kvm_host.h arch/s390/kvm/intercept.c arch/s390/kvm/kvm-s390.c +2 more+54 -270 replies
2/3kvm-s390: fix signal handlingarch/s390/kvm/kvm-s390.c+3 -10 replies
3/3kvm-s390: streamline memslot handlingarch/s390/include/asm/kvm_host.h arch/s390/kvm/gaccess.h arch/s390/kvm/intercept.c +3 more+60 -547 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kvm-s390: revised version of kvm-s390 guest memory handling

From: Christian Ehrhardt <[email protected]>

This patch series results from our discussions about handling memslots and vcpu mmu reloads. It streamlines kvm-s390 a bit by using slots_lock, vcpu-request (KVM_REQ_MMU_RELOAD) and a kick mechanism to ensure vcpus come out of guest context to catch the update.

I tested the reworked code a while with multiple smp guests and some extra code that periodically injects kicks and/or mmu reload requests, but I'm happy about every additional review feedback.

Patches included:
Subject: [PATCH 1/3] kvm-s390: infrastructure to kick vcpus out of guest state
Subject: [PATCH 2/3] kvm-s390: fix signal handling
Subject: [PATCH 3/3] kvm-s390: streamline memslot handling

Overall-Diffstat:

 arch/s390/include/asm/kvm_host.h |    9 ++---
 arch/s390/kvm/gaccess.h          |   23 +++++++-------
 arch/s390/kvm/intercept.c        |   18 +++++++----
 arch/s390/kvm/kvm-s390.c         |   57 ++++++++++++++-----------------------
 arch/s390/kvm/kvm-s390.h         |   32 ++++++++++++++++++++
 arch/s390/kvm/sigp.c             |   60 +++++++++++++++++++++++----------------
 6 files changed, 117 insertions(+), 82 deletions(-)