Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp470741rdh; Thu, 26 Oct 2023 07:15:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHb8gbOoP8b+SuMG4LxEYgl6IyF0gebz/MDrR3g5aYaBQtwoSgUvQfIcsiU1ZzyALKjMqK8 X-Received: by 2002:a81:4a86:0:b0:589:f995:eb9f with SMTP id x128-20020a814a86000000b00589f995eb9fmr20059132ywa.45.1698329728913; Thu, 26 Oct 2023 07:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698329728; cv=none; d=google.com; s=arc-20160816; b=c0URFcBCpC88CZrnh5AEgub91V4LwhSGgVakam1XE3HSrYiRxnhgg0+EtgT6u1ifmu CcGCEcNB9PIfKsN9B30fT4mg14h9bp8IMa02x6j/txTfcNdNnSDWucwnV+i6d3r/Ape/ 7YmqKvlgnfV+5sK34Lj/aKS8Cs1nL4rp/1z/yGXhByR/yUpM2jLP3lHjGccDNz8GNxf0 973IRmUDzaFkr69KISclEb5xWl4K//Fk5BYgJAxQHJU1EdmZVQ2q1Xl2BBkS3j78e7xb ZKpyKd2uZS9l5wWR7bq+7as51DRuFWtg6KN9GQ+MdwY0qt0hxAW4k0iGyJVpc70KsIxA rnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=77A4uI71aLDR2Db3JvgQkrU3Bx1ZsYc0mBBzKN4HpKc=; fh=lcnU6aHC7i73Ht5Yag8xDeyq9oJdbVpRorKJ0Hc2mvQ=; b=F8KaXO2nVmo+jblXOmXWsMJ2UgJO11o+YWr1zQwqsKWAiaQLCwDpFkvkaVyx3I8DGk 55MIfrOnm67o1zQDDayexNEHbu51Stw8gK8m2Mqcfd8ILWxIWasZ2C7UeczRiptKOg6z VYtoOGD6lSND4MX+Nh3yvmzCZ7jW9Cl0CYc8s/aFB8D7WxwvPlmLnAFICUlSuojE+5+w xXa6+GkKyBGD1QTUool+P3utIXFROnkhiayp8PLjvaiCA1+sMhBWpo/wxGKPU0T0fqcf ug/3TLg1zAcsXCgIW0YjH/BrYHpZ+qvrtU0zjjjQK887fHR2imiL8K/GYf3vzGGfW6DF uIdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OK16cxR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v17-20020a81a551000000b005a80fab4f07si15757472ywg.35.2023.10.26.07.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:15:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OK16cxR+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0603E809ABD9; Thu, 26 Oct 2023 07:15:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345187AbjJZOPW (ORCPT + 99 others); Thu, 26 Oct 2023 10:15:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230507AbjJZOPU (ORCPT ); Thu, 26 Oct 2023 10:15:20 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CB3128; Thu, 26 Oct 2023 07:15:17 -0700 (PDT) Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39QDei4T006996; Thu, 26 Oct 2023 14:15:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=77A4uI71aLDR2Db3JvgQkrU3Bx1ZsYc0mBBzKN4HpKc=; b=OK16cxR+jtKDAQLYrcnvJWoBQRmyaM4c1vHKZM2r6Abflqd15h/bQ3/DaEsRu64Ti0ZC Dv2EgCe10AYx/ObrOqdShmXhVH04OR+gJOxRE3fjbWPxukc7oOYCLjB+PTvZZuZERHb+ Nf3+GWeFAwUygKzY06dpAgf+Ac+/oToqv6x+vp+s/ePtuDzEh0yT8cqg87iuyTgtC5DJ 9zoMUMxGmMuPGw258NKU6ijbUO7SH4VX9U5BpaYP/LX71Aoab9vae0y6vQz7DHEpqNVt nQVqN2lI8BSVQpi/mGVeYmm4K35pFKXf/9FxoIlnmJpX5wmd0EoX8QocXQa/v0TyGRlo bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tys74hp4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 14:15:15 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39QDsO7H025868; Thu, 26 Oct 2023 14:15:14 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tys74hp3r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 14:15:14 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39QDesuP023800; Thu, 26 Oct 2023 14:15:13 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tvryteuvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 14:15:13 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39QEFCdt65405348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Oct 2023 14:15:13 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D19E15805B; Thu, 26 Oct 2023 14:15:12 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B975358055; Thu, 26 Oct 2023 14:15:11 +0000 (GMT) Received: from [9.61.72.236] (unknown [9.61.72.236]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Thu, 26 Oct 2023 14:15:11 +0000 (GMT) Message-ID: <0bed3d29-7fb1-d56d-5f12-e2010ae7d97f@linux.ibm.com> Date: Thu, 26 Oct 2023 10:15:11 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 3/3] s390/vfio-ap: improve reaction to response code 07 from PQAP(AQIC) command Content-Language: en-US To: Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: jjherne@linux.ibm.com, pasic@linux.ibm.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, david@redhat.com References: <20231018133829.147226-1-akrowiak@linux.ibm.com> <20231018133829.147226-4-akrowiak@linux.ibm.com> From: Matthew Rosato In-Reply-To: <20231018133829.147226-4-akrowiak@linux.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Ogj1CPFT1XYk4-Zbf1c8knNYu0fj2EF- X-Proofpoint-GUID: FXJDR8LlgFemaX1G07i4-8ukJ6xy37be X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-26_12,2023-10-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 mlxlogscore=930 clxscore=1011 impostorscore=0 spamscore=0 phishscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310260123 X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 26 Oct 2023 07:15:27 -0700 (PDT) On 10/18/23 9:38 AM, Tony Krowiak wrote: > Let's improve the vfio_ap driver's reaction to reception of response code > 07 from the PQAP(AQIC) command when enabling interrupts on behalf of a > guest: > > * Unregister the guest's ISC before the pages containing the notification > indicator bytes are unpinned. > > * Capture the return code from the kvm_s390_gisc_unregister function and > log a DBF warning if it fails. > > Suggested-by: Matthew Rosato > Signed-off-by: Tony Krowiak Reviewed-by: Matthew Rosato I went back-and-forth on whether this should be a stable/fixes candidate but I think no... I happened to notice it while reviewing other code, I'm not aware that it's ever created a visible issue, and it's on a pretty immediate error path. If anyone thinks it should be a stable candidate I have no objection but in that case would suggest to break the patch up to separate the new WARN from the fix.