From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:33010 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729048AbgBYMMA (ORCPT ); Tue, 25 Feb 2020 07:12:00 -0500 Date: Tue, 25 Feb 2020 13:11:46 +0100 From: Cornelia Huck Subject: Re: [PATCH v4 15/36] KVM: s390: protvirt: Add SCLP interrupt handling Message-ID: <20200225131146.686f0fe0.cohuck@redhat.com> In-Reply-To: <20200224114107.4646-16-borntraeger@de.ibm.com> References: <20200224114107.4646-1-borntraeger@de.ibm.com> <20200224114107.4646-16-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-s390-owner@vger.kernel.org List-ID: To: Christian Borntraeger Cc: Janosch Frank , KVM , David Hildenbrand , Thomas Huth , Ulrich Weigand , Claudio Imbrenda , linux-s390 , Michael Mueller , Vasily Gorbik , Janosch Frank On Mon, 24 Feb 2020 06:40:46 -0500 Christian Borntraeger wrote: > The sclp interrupt is kind of special. The ultravisor polices that we > do not inject an sclp interrupt with payload if no sccb is outstanding. > On the other hand we have "asynchronous" event interrupts, e.g. for > console input. > We separate both variants into sclp interrupt and sclp event interrupt. > The sclp interrupt is masked until a previous servc instruction has > finished (sie exit 108). > > [frankja@linux.ibm.com: factoring out write_sclp] > Signed-off-by: Janosch Frank > Signed-off-by: Christian Borntraeger > --- > arch/s390/include/asm/kvm_host.h | 6 +- > arch/s390/kvm/intercept.c | 27 +++++++++ > arch/s390/kvm/interrupt.c | 95 ++++++++++++++++++++++++++------ > arch/s390/kvm/kvm-s390.c | 6 ++ > 4 files changed, 115 insertions(+), 19 deletions(-) Reviewed-by: Cornelia Huck