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 - v2 Date: Mon, 25 May 2009 13:40:48 +0200 Message-ID: <1243251652-27617-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 To: kvm@vger.kernel.org, avi@redhat.com Return-path: Received: from mtagate8.de.ibm.com ([195.212.29.157]:39674 "EHLO mtagate8.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbZEYLlY (ORCPT ); Mon, 25 May 2009 07:41:24 -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 n4PBerZa525914 for ; Mon, 25 May 2009 11:40:53 GMT Received: from d12av03.megacenter.de.ibm.com (d12av03.megacenter.de.ibm.com [9.149.165.213]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n4PBer1p2846816 for ; Mon, 25 May 2009 13:40:53 +0200 Received: from d12av03.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av03.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n4PBeq1O030656 for ; Mon, 25 May 2009 13:40:52 +0200 Sender: kvm-owner@vger.kernel.org List-ID: From: Christian Ehrhardt *update 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/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 | 4 -- arch/s390/kvm/intercept.c | 6 +-- arch/s390/kvm/kvm-s390.c | 54 +++++++++++---------------------- arch/s390/kvm/kvm-s390.h | 29 +++++++++++++++++- arch/s390/kvm/sigp.c | 4 +- kvm/arch/s390/include/asm/kvm_host.h | 5 +-- kvm/arch/s390/kvm/gaccess.h | 23 +++++++------- kvm/arch/s390/kvm/intercept.c | 12 +++++-- kvm/arch/s390/kvm/kvm-s390.c | 5 +++ kvm/arch/s390/kvm/kvm-s390.h | 3 + kvm/arch/s390/kvm/sigp.c | 56 +++++++++++++++++++++-------------- 11 files changed, 119 insertions(+), 82 deletions(-)