From mboxrd@z Thu Jan 1 00:00:00 1970 From: ehrhardt@linux.vnet.ibm.com Subject: [PATCH 0/3] kvm-s390: revised version of kvm-s390 guest memory handling - rebased v2 Date: Mon, 15 Jun 2009 15:47:51 +0200 Message-ID: <1245073674-28998-1-git-send-email-ehrhardt@linux.vnet.ibm.com> Cc: ehrhardt@linux.vnet.ibm.com, borntraeger@de.ibm.com, cotte@de.ibm.com, heiko.carstens@de.ibm.com, schwidefsky@de.ibm.com, mtosatti@redhat.com To: kvm@vger.kernel.org, avi@redhat.com Return-path: Received: from mtagate8.de.ibm.com ([195.212.29.157]:45861 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbZFONsE (ORCPT ); Mon, 15 Jun 2009 09:48:04 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate8.de.ibm.com (8.14.3/8.13.8) with ESMTP id n5FDluPG060438 for ; Mon, 15 Jun 2009 13:47:56 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n5FDlt9I2871548 for ; Mon, 15 Jun 2009 15:47:55 +0200 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n5FDlt6X027475 for ; Mon, 15 Jun 2009 15:47:55 +0200 Sender: kvm-owner@vger.kernel.org List-ID: From: Christian Ehrhardt As requested this is a rebased patch on top of the already applied v3 of the patch series. *updates to already applied version* - remove dependency to KVM_REQ_MMU_RELOAD in generic code - remove explicit barrier after test_and_clear_bit as it is implied - ensure the wait_on_bit waiter is notified - move the reset of requests to kvm_vcpu_release to drop them early - ensure dropping all vcpu requests while freeing a vcpu - ensure kick allocations (might_sleep) are out of atomic context - update vcpu->cpu in kvm-s390 arch handler for load/put - centralize consumption of vcpu->request bits - updates on running vcpus can now be handled without need to rerun the vcpu - kvm_arch_set_memory_region waits until the bit is consumed by the vcpu - kickout only scheduled vcpus (wait might hang forever on non-scheduled vcpus) 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. Patches included: Subject: [PATCH 1/3] kvm-s390: infrastructure to kick vcpus out of guest state - rebased Subject: [PATCH 2/3] kvm-s390: update vcpu->cpu - rebased Subject: [PATCH 3/3] kvm-s390: streamline memslot handling - rebased v2 Overall-Diffstat: arch/s390/include/asm/kvm_host.h | 2 +- arch/s390/kvm/intercept.c | 10 ++++++---- arch/s390/kvm/kvm-s390.c | 36 +++++++++++++++++++++++++----------- arch/s390/kvm/kvm-s390.h | 22 +++++++++++++++++++++- arch/s390/kvm/sigp.c | 31 +++++++++++++++++++++---------- virt/kvm/kvm_main.c | 6 ++++++ 6 files changed, 80 insertions(+), 27 deletions(-)