Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5451327imu; Wed, 19 Dec 2018 11:23:13 -0800 (PST) X-Google-Smtp-Source: AFSGD/XY5zm8PhqFkTUGicaZ4lkgWpHn/9Mb+Nn6hgAm7rHQxCoJn/Ehmd4z0TY3HUwRgBcylLEJ X-Received: by 2002:a62:db41:: with SMTP id f62mr22021165pfg.123.1545247393367; Wed, 19 Dec 2018 11:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545247393; cv=none; d=google.com; s=arc-20160816; b=nn7V09CEx5VG7LRnuRTasQI0dWHQTeNhKnniHad18dFTrUa9TD9jvE5knjmhS4gta9 vSV5/MKQMdR9MO3CNWpd/NVilttN1kUvhnXthvpBJ5lGA37b1AiNEOEdskLHWU9c2W3g 2cg8embw97+IjIIJxQqI6N4WbbuC2DryvanuCcPP1TbBuiqFfR/TB9QItkXo8+FqZiMA Q2rynUYvnZ1nngBK58NTLU7RTmYMUvP2I0c5bHFXYa1CardytGgfbQj9g9HIwWjqon+X VfaEonnnxd7dSftOV1SoFKRTI8HtSbY/TmlCbeOfybYgfB9EAaWeWnwkKnWV3k2HKQfH N8GQ== 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=4VNGlWRV6XC1jXNYoPXo6i1PmQZMI17VkQVJvocQNZM=; b=yo1zVoBlgZRojSACts1DaWCSeICc0GVx5d4e8G9Gs5pQHDaBKk1qq8SyzFVssqk4Er 7JLbFWR4CC4orXXnIFGTieTKK5HnL0ODC6LTPAFr6JX9uK04k6I62I7Mq9alfG168qC4 BduW4kXEip5HDmXiJzlyassTQxEDwXD2ZnyI7UTWm9ldS1iOrXGYlxPcWZA5MC2EAmuN vF86FrBDjXimImlBBrX5aSWkiUWZNlYFpUqqfRQOuvbcLr3LAJdcDrOV5z2ffU+53cnp E1Ny5kG3dbWtVWyYhe4oMOTV6mZmpLEwiibrUEZt3Zn8SolKgUvLIHD6x6v9eou81ZyS ezPQ== 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 p23si15869419plo.7.2018.12.19.11.22.57; Wed, 19 Dec 2018 11:23:13 -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 S1729491AbeLSTTu (ORCPT + 99 others); Wed, 19 Dec 2018 14:19:50 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44154 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729600AbeLSTSN (ORCPT ); Wed, 19 Dec 2018 14:18:13 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBJIwdVu036465 for ; Wed, 19 Dec 2018 14:18:12 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pfte359ey-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Dec 2018 14:18:12 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Dec 2018 19:18:09 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 19 Dec 2018 19:18:07 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBJJI5MT61735010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Dec 2018 19:18:05 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5741C52059; Wed, 19 Dec 2018 19:18:05 +0000 (GMT) Received: from s38lp84.lnxne.boe (unknown [9.152.108.100]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id E726252052; Wed, 19 Dec 2018 19:18:04 +0000 (GMT) From: Michael Mueller To: KVM Mailing List Cc: Linux-S390 Mailing List , linux-kernel@vger.kernel.org, kvm390-list@tuxmaker.boeblingen.de.ibm.com, Martin Schwidefsky , Heiko Carstens , Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Halil Pasic , Pierre Morel , Michael Mueller Subject: [PATCH v5 04/15] KVM: s390: use pending_irqs_no_gisa() where appropriate Date: Wed, 19 Dec 2018 20:17:45 +0100 X-Mailer: git-send-email 2.13.4 In-Reply-To: <20181219191756.57973-1-mimu@linux.ibm.com> References: <20181219191756.57973-1-mimu@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18121919-0012-0000-0000-000002DB6864 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121919-0013-0000-0000-000021110736 Message-Id: <20181219191756.57973-5-mimu@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-19_10:,, 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=790 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812190150 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 --- 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 c3a8b2fbbcf2..093b568b6356 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