From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9AwF-0004IL-T5 for qemu-devel@nongnu.org; Wed, 05 Sep 2012 04:26:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9AwA-0004qq-4V for qemu-devel@nongnu.org; Wed, 05 Sep 2012 04:26:19 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:37531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Aw9-0004n3-SD for qemu-devel@nongnu.org; Wed, 05 Sep 2012 04:26:14 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Sep 2012 09:26:10 +0100 Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q858Pxbc41812090 for ; Wed, 5 Sep 2012 08:26:00 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q858Q5KG012670 for ; Wed, 5 Sep 2012 02:26:06 -0600 Date: Wed, 5 Sep 2012 10:26:00 +0200 From: Cornelia Huck Message-ID: <20120905102600.6759cec3@BR9GNB5Z> In-Reply-To: <5046FF35.6050403@redhat.com> References: <1346771610-52423-1-git-send-email-cornelia.huck@de.ibm.com> <1346771610-52423-2-git-send-email-cornelia.huck@de.ibm.com> <5046FF35.6050403@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/7] s390/kvm: Support for I/O interrupts. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: linux-s390 , Anthony Liguori , Rusty Russell , KVM , Carsten Otte , Sebastian Ott , Marcelo Tosatti , Heiko Carstens , qemu-devel , Alexander Graf , Christian Borntraeger , Martin Schwidefsky On Wed, 05 Sep 2012 10:28:53 +0300 Avi Kivity wrote: > On 09/04/2012 06:13 PM, Cornelia Huck wrote: > > Add support for handling I/O interrupts (standard, subchannel-related > > ones and rudimentary adapter interrupts). > > > > The subchannel-identifying parameters are encoded into the interrupt > > type. > > > > I/O interrupts are floating, so they can't be injected on a specific > > vcpu. > > > > diff --git a/include/linux/kvm.h b/include/linux/kvm.h > > index d808694..5a36e65 100644 > > --- a/include/linux/kvm.h > > +++ b/include/linux/kvm.h > > @@ -396,6 +396,12 @@ struct kvm_s390_psw { > > #define KVM_S390_INT_SERVICE 0xffff2401u > > #define KVM_S390_INT_EMERGENCY 0xffff1201u > > #define KVM_S390_INT_EXTERNAL_CALL 0xffff1202u > > +#define KVM_S390_INT_IO(ai,cssid,ssid,schid) \ > > + (((schid)) | \ > > + ((ssid) << 16) | \ > > + ((cssid) << 18) | \ > > + ((ai) << 26)) > > + > > > > Documentation? > KVM_S390_INTERRUPT is currently completely undocumented... I'll probably do an extra patch and then have this and the machine check patch add the new values.