Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6878473imu; Thu, 31 Jan 2019 00:57:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN78CmtuNBBVBFBQXT2KHNTnh74muwR6qeP+mlLTs34wULZMPVr8YN1+mv98lGrCimDqhCo5 X-Received: by 2002:a63:f141:: with SMTP id o1mr31053082pgk.134.1548925021777; Thu, 31 Jan 2019 00:57:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548925021; cv=none; d=google.com; s=arc-20160816; b=xif4r0SaaY+W/88kYCtd/c1s92ZV09xanIGIwovzaS/y0juv2Hnim0tecSrPY82LxR WOa65jHnz4tsaBZNGYL5dZh1rrVyTf88GJVeIpgoRF6mQL30O68hoGZGcqIDLm95jkiZ oCPRCe0jNOZWkQIfoubcbPdQRMQ/ShGfvY/yb7dv1mvyen7TZBOnI/6LfTeGJbRpjP2r zcOgeG3rahVpl1nEEcPmp3dOK6jannoM9KT72Cd2QPJ1qjkf5ep29KJQO/KE6xbsHiJT 07BGK0hjzLlzOH5nJ6rhIzWOeeNVPbvWXoyWbInjABseHrEXd2sXivNympU/T3tBf6JS zeVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=sS9COa+SIOo7rS+lVDADziA4gdLd+WoPsSzsgewh/oo=; b=j5UOaklZaxsdXFZp4p86rw2y+FTYhvZHxnbZFPL2FIGySVja/uFn59Kflff9WliTb8 sj9wU1Av9835cFH5sG7i+8H2NPCwV7/7MvajyIkl0zmnQu1cQrh0QTB/NJ8eVdv1th1q /4V8HyZpX+JmvA++j4pH2ENe9yLkeciMbUullPhBZr9uyUDqtSZJtb29fEIPpumOZnSs aNzMb+pcTdFXAlsVA161OO2HTR4/sTlrKQiUPGKpoOWVbK0KK2mqx2y220EJDbNoVMpF X7WcOt7JorkceY7/MEpGLTkmMK1iEyHNIovXskiYSE9NHlfEovpXvW/8Q6H8ofErBTHA H4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si3716821pgj.416.2019.01.31.00.56.46; Thu, 31 Jan 2019 00:57:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731848AbfAaIyt (ORCPT + 99 others); Thu, 31 Jan 2019 03:54:49 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:42518 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729478AbfAaIx0 (ORCPT ); Thu, 31 Jan 2019 03:53:26 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0V8hvFP070454 for ; Thu, 31 Jan 2019 03:53:25 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qbu80fjk7-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 Jan 2019 03:53:25 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Jan 2019 08:53:22 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 31 Jan 2019 08:53:19 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0V8rHXF42664150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 31 Jan 2019 08:53:17 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AF3504204D; Thu, 31 Jan 2019 08:53:17 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4226642047; Thu, 31 Jan 2019 08:53:17 +0000 (GMT) Received: from s38lp84.lnxne.boe (unknown [9.152.108.100]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 31 Jan 2019 08:53:17 +0000 (GMT) From: Michael Mueller To: KVM Mailing List Cc: Linux-S390 Mailing List , linux-kernel@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Halil Pasic , Pierre Morel , Michael Mueller Subject: [PATCH v7 05/15] KVM: s390: use pending_irqs_no_gisa() where appropriate Date: Thu, 31 Jan 2019 09:52:36 +0100 X-Mailer: git-send-email 2.13.4 In-Reply-To: <20190131085247.13826-1-mimu@linux.ibm.com> References: <20190131085247.13826-1-mimu@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19013108-0008-0000-0000-000002B935BB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19013108-0009-0000-0000-000022253767 Message-Id: <20190131085247.13826-6-mimu@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-31_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=782 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901310070 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Interruption types that are not represented in GISA shall use pending_irqs_no_gisa() to test pending interruptions. Signed-off-by: Michael Mueller Reviewed-by: Cornelia Huck Reviewed-by: Pierre Morel Reviewed-by: Halil Pasic --- arch/s390/kvm/interrupt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index 005dbe7252e7..cb48736867ed 100644 --- a/arch/s390/kvm/interrupt.c +++ b/arch/s390/kvm/interrupt.c @@ -353,7 +353,7 @@ static void set_intercept_indicators_io(struct kvm_vcpu *vcpu) static void set_intercept_indicators_ext(struct kvm_vcpu *vcpu) { - if (!(pending_irqs(vcpu) & IRQ_PEND_EXT_MASK)) + if (!(pending_irqs_no_gisa(vcpu) & IRQ_PEND_EXT_MASK)) return; if (psw_extint_disabled(vcpu)) kvm_s390_set_cpuflags(vcpu, CPUSTAT_EXT_INT); @@ -363,7 +363,7 @@ static void set_intercept_indicators_ext(struct kvm_vcpu *vcpu) static void set_intercept_indicators_mchk(struct kvm_vcpu *vcpu) { - if (!(pending_irqs(vcpu) & IRQ_PEND_MCHK_MASK)) + if (!(pending_irqs_no_gisa(vcpu) & IRQ_PEND_MCHK_MASK)) return; if (psw_mchk_disabled(vcpu)) vcpu->arch.sie_block->ictl |= ICTL_LPSW; -- 2.13.4