From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Otte Subject: [patch 06/11] [PATCH] kvm-s390-ucontrol: disable in-kernel irq stack Date: Wed, 04 Jan 2012 10:25:25 +0100 Message-ID: <20120104093602.422035807@de.ibm.com> References: <20120104092519.060746143@de.ibm.com> Cc: Christian Borntraeger , Heiko Carstens , Martin Schwidefsky , Cornelia Huck , KVM , Joachim von Buttlar , Jens Freimann , agraf@suse.de To: Avi Kivity , Marcelo Tossati Return-path: Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:57639 "EHLO e06smtp14.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754803Ab2ADJgH (ORCPT ); Wed, 4 Jan 2012 04:36:07 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jan 2012 09:36:06 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q049a3uQ2363588 for ; Wed, 4 Jan 2012 09:36:03 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q049a3xU001258 for ; Wed, 4 Jan 2012 02:36:03 -0700 Content-Disposition: inline; filename=kvm-disable-irq-stack.patch Sender: kvm-owner@vger.kernel.org List-ID: This patch disables the in-kernel interrupt stack for KVM virtual machines that are controlled by user. Userspace has to take care of handling interrupts on its own. Signed-off-by: Carsten Otte --- Index: linux-2.5-cecsim/arch/s390/kvm/kvm-s390.c =================================================================== --- linux-2.5-cecsim.orig/arch/s390/kvm/kvm-s390.c +++ linux-2.5-cecsim/arch/s390/kvm/kvm-s390.c @@ -505,7 +505,8 @@ static int __vcpu_run(struct kvm_vcpu *v if (test_thread_flag(TIF_MCCK_PENDING)) s390_handle_mcck(); - kvm_s390_deliver_pending_interrupts(vcpu); + if (!kvm_is_ucontrol(vcpu->kvm)) + kvm_s390_deliver_pending_interrupts(vcpu); vcpu->arch.sie_block->icptcode = 0; local_irq_disable();