Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1958701imu; Thu, 24 Jan 2019 05:04:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dwMwb966umhPNoKhPHfd8fW2MZdsQ1oWGwCN6Z+HTtYtt4xjuJLM7dvzF0hr8tmF+J7vJ X-Received: by 2002:a63:6984:: with SMTP id e126mr5945959pgc.143.1548335056131; Thu, 24 Jan 2019 05:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548335056; cv=none; d=google.com; s=arc-20160816; b=v9HwrYGMmFpW3hqUXwTDEWI0l0U4uSWblFMLIWbsfYDUEtpnuBWTdHuOFcW1Ydkhsn GiM4MqUk9Ru192gJAwNkmEC2yvdruTTDDKo9sfXWNaxX2mj2J2zOTIRmI43g9fdOjw/B ukXVIPqqpeJy2QKTWTILEqshQuviuwgEK979U270BdVY99MIDQC+n54zScJfk7P5xxNr twh7qHzweUCMKGAXU3JD1LumrIwZpQeQXbU3wa70SfRGi5haMr3iHjiJ6ZSEAGTKLQTf kAXNyr4WRe+dOVnc/6km4puN68F3wYMuNozxyvZNm0xUghZk7TAw8baPssBLGb+bWcR9 EutA== 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=PYIIkXhPRh7k0XV2TCimtqcc2UwyqlRsCwX/9rUwheg=; b=tm920sTzdsdhJja9DgpL6cbQ/G2g51xGvuzNnKRUIp7OYid6UOvrZSBevAHE8EAI/9 WK+knlqTFC9492NMNPn1OmIRIByYeYorrQPkGTVoWconJk2e5mK4BrJQ3/pm2A91mAbT LLd3iqMZnqI3x2/JvjN04rC2yyfOKiGqPfVm4WgHf98GkQwUXWvQVrnPt0a3vk69mK6G /uZVG4WepIzvt7L8lJilBieZxRgfA4aSjQ1+n+42sFiWxee9iINN7NYMwWULHLXGma9o wyRe09f1eKSj+sk9tMJHXO/dikwVGrhF9fuHFMKFc9Anm4cooPpCZp1tjCS7A1nyW3Bg 5Owg== 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 t3si22413615pgl.108.2019.01.24.05.03.59; Thu, 24 Jan 2019 05:04:16 -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 S1728289AbfAXNB1 (ORCPT + 99 others); Thu, 24 Jan 2019 08:01:27 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46496 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727968AbfAXNAK (ORCPT ); Thu, 24 Jan 2019 08:00:10 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0OCsskB001894 for ; Thu, 24 Jan 2019 08:00:09 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q7bh4frxr-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 24 Jan 2019 08:00:08 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 Jan 2019 13:00:06 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) 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) Thu, 24 Jan 2019 13:00:02 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0OD01pg43778234 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Jan 2019 13:00:01 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D28A52059; Thu, 24 Jan 2019 13:00:01 +0000 (GMT) Received: from s38lp84.lnxne.boe (unknown [9.152.108.100]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id DF8EB52050; Thu, 24 Jan 2019 13:00:00 +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 v6 05/13] KVM: s390: use pending_irqs_no_gisa() where appropriate Date: Thu, 24 Jan 2019 13:59:31 +0100 X-Mailer: git-send-email 2.13.4 In-Reply-To: <20190124125939.130763-1-mimu@linux.ibm.com> References: <20190124125939.130763-1-mimu@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19012413-0012-0000-0000-000002EC5DBD X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19012413-0013-0000-0000-00002123915B Message-Id: <20190124125939.130763-6-mimu@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-24_07:,, 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=772 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901240095 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 --- 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