From patchwork Thu Jan 22 09:29:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Borntraeger X-Patchwork-Id: 3547 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0M9QJSW031303 for ; Thu, 22 Jan 2009 01:26:19 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757036AbZAVJaa (ORCPT ); Thu, 22 Jan 2009 04:30:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756992AbZAVJaa (ORCPT ); Thu, 22 Jan 2009 04:30:30 -0500 Received: from mtagate5.uk.ibm.com ([195.212.29.138]:39738 "EHLO mtagate5.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756910AbZAVJa2 (ORCPT ); Thu, 22 Jan 2009 04:30:28 -0500 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate5.uk.ibm.com (8.13.8/8.13.8) with ESMTP id n0M9TAQL458034 for ; Thu, 22 Jan 2009 09:29:10 GMT Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n0M9T9XA1916954 for ; Thu, 22 Jan 2009 09:29:09 GMT Received: from d06av03.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n0M9T949008904 for ; Thu, 22 Jan 2009 09:29:09 GMT Received: from dyn-9-152-212-32.boeblingen.de.ibm.com (dyn-9-152-212-32.boeblingen.de.ibm.com [9.152.212.32]) by d06av03.portsmouth.uk.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n0M9T8TX008876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 22 Jan 2009 09:29:09 GMT From: Christian Borntraeger To: Avi Kivity , kvm@vger.kernel.org Subject: [PATCH 3/3] kvm-s390: Fix SIGP set prefix ioctl Date: Thu, 22 Jan 2009 10:29:08 +0100 User-Agent: KMail/1.9.9 Cc: Christian Ehrhardt , Carsten Otte , Olaf Schnapper References: <200901221026.13261.borntraeger@de.ibm.com> In-Reply-To: <200901221026.13261.borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200901221029.08650.borntraeger@de.ibm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Christian Borntraeger This patch fixes the SET PREFIX interrupt if triggered by userspace. Until now, it was not necessary, but life migration will need it. In addition, it helped me creating SMP support for my kvm_crashme tool (lets kvm execute random guest memory content). Signed-off-by: Christian Borntraeger --- arch/s390/kvm/interrupt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: kvm/arch/s390/kvm/interrupt.c =================================================================== --- kvm.orig/arch/s390/kvm/interrupt.c +++ kvm/arch/s390/kvm/interrupt.c @@ -555,9 +555,14 @@ int kvm_s390_inject_vcpu(struct kvm_vcpu VCPU_EVENT(vcpu, 3, "inject: program check %d (from user)", s390int->parm); break; + case KVM_S390_SIGP_SET_PREFIX: + inti->prefix.address = s390int->parm; + inti->type = s390int->type; + VCPU_EVENT(vcpu, 3, "inject: set prefix to %x (from user)", + s390int->parm); + break; case KVM_S390_SIGP_STOP: case KVM_S390_RESTART: - case KVM_S390_SIGP_SET_PREFIX: case KVM_S390_INT_EMERGENCY: VCPU_EVENT(vcpu, 3, "inject: type %x", s390int->type); inti->type = s390int->type;