public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] kvm-s390: revised version of kvm-s390 guest memory handling - v4
@ 2009-05-28 15:43 ehrhardt
  2009-05-28 15:43 ` [PATCH 1/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3 ehrhardt
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: ehrhardt @ 2009-05-28 15:43 UTC (permalink / raw)
  To: kvm, avi
  Cc: ehrhardt, borntraeger, cotte, heiko.carstens, schwidefsky,
	mtosatti

From: Christian Ehrhardt <ehrhardt@de.ibm.com>

*updates in v3*
- ensure kick allocations (might_sleep) are out of atomic context
- replaced "kick to level" behaviour by "kick to low level and bail out"
- updates on running vcpus can now be handled without need to rerun the vcpu
- kvm_arch_set_memory_region waits until the update is consumed by the vcpu
- kickout only scheduled vcpus (wait might hang forever on non-scheduled vcpus)
- moved some code between patches 1 & 2 thematically
- update vcpu->cpu in kvm-s390 arch handler for load/put
- remove a redundant declaration in kvm_host.h related to load/put

Note: further unification of make_all_cpu_request and the kick mechanism is
planned, but it might be good to split it from this step towards commonality.

*updates in v2*
added optimization to patch 3/3 to skip (addtional) kickout of vcpu's that had
the request already set.

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/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3
Subject: [PATCH 2/5] kvm-s390: fix interruption casued by signal - v2
Subject: [PATCH 3/5] kvm-s390: update vcpu->cpu
Subject: [PATCH 4/5] kvm: remove redundant declarations
Subject: [PATCH 5/5] kvm-s390: streamline memslot handling - v4

Overall-Diffstat:
 arch/s390/include/asm/kvm_host.h |    9 ++---
 arch/s390/kvm/gaccess.h          |   23 ++++++------
 arch/s390/kvm/intercept.c        |   20 +++++++----
 arch/s390/kvm/kvm-s390.c         |   70 ++++++++++++++++++++-------------------
 arch/s390/kvm/kvm-s390.h         |   50 +++++++++++++++++++++++++++
 arch/s390/kvm/sigp.c             |   63 ++++++++++++++++++++++++-----------
 include/linux/kvm_host.h         |    2 -
 7 files changed, 159 insertions(+), 78 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/5] kvm-s390: revised version of kvm-s390 guest memory handling - v5
@ 2009-05-29  8:21 ehrhardt
  2009-05-29  8:21 ` [PATCH 1/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3 ehrhardt
  0 siblings, 1 reply; 7+ messages in thread
From: ehrhardt @ 2009-05-29  8:21 UTC (permalink / raw)
  To: kvm, avi
  Cc: ehrhardt, borntraeger, cotte, heiko.carstens, schwidefsky,
	mtosatti

From: Christian Ehrhardt <ehrhardt@de.ibm.com>

*updates in v5*
- ensure dropping all vcpu requests while freeing a vcpu

*updates in v4*
- ensure kick allocations (might_sleep) are out of atomic context
- update vcpu->cpu in kvm-s390 arch handler for load/put
- remove a redundant declaration in kvm_host.h related to load/put

*updates in v3*
- replaced "kick to level" behaviour by "kick to low level and bail out"
- updates on running vcpus can now be handled without need to rerun the vcpu
- kvm_arch_set_memory_region waits until the update is consumed by the vcpu
- kickout only scheduled vcpus (wait might hang forever on non-scheduled vcpus)
- moved some code between patches 1 & 2 thematically

Note: further unification of make_all_cpu_request and the kick mechanism is
planned, but it might be good to split it from this step towards commonality.

*updates in v2*
added optimization to patch 3/3 to skip (addtional) kickout of vcpu's that had
the request already set.

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/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3
Subject: [PATCH 2/5] kvm-s390: fix interruption casued by signal - v2
Subject: [PATCH 3/5] kvm-s390: update vcpu->cpu
Subject: [PATCH 4/5] kvm: remove redundant declarations
Subject: [PATCH 5/5] kvm-s390: streamline memslot handling - v5

Overall-Diffstat:
 arch/s390/include/asm/kvm_host.h |    9 ++---
 arch/s390/kvm/gaccess.h          |   23 ++++++------
 arch/s390/kvm/intercept.c        |   20 +++++++----
 arch/s390/kvm/kvm-s390.c         |   70 ++++++++++++++++++++-------------------
 arch/s390/kvm/kvm-s390.h         |   50 +++++++++++++++++++++++++++
 arch/s390/kvm/sigp.c             |   63 ++++++++++++++++++++++++-----------
 include/linux/kvm_host.h         |    2 -
 virt/kvm/kvm_main.c              |    1
 8 files changed, 160 insertions(+), 78 deletions(-)

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

end of thread, other threads:[~2009-05-29  8:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 15:43 [PATCH 0/5] kvm-s390: revised version of kvm-s390 guest memory handling - v4 ehrhardt
2009-05-28 15:43 ` [PATCH 1/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3 ehrhardt
2009-05-28 15:43 ` [PATCH 2/5] kvm-s390: fix interruption casued by signal - v2 ehrhardt
2009-05-28 15:43 ` [PATCH 3/5] kvm-s390: update vcpu->cpu ehrhardt
2009-05-28 15:43 ` [PATCH 4/5] kvm: remove redundant declarations ehrhardt
2009-05-28 15:43 ` [PATCH 5/5] kvm-s390: streamline memslot handling - v4 ehrhardt
  -- strict thread matches above, loose matches on Subject: below --
2009-05-29  8:21 [PATCH 0/5] kvm-s390: revised version of kvm-s390 guest memory handling - v5 ehrhardt
2009-05-29  8:21 ` [PATCH 1/5] kvm-s390: infrastructure to kick vcpus out of guest state - v3 ehrhardt

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