From patchwork Thu Oct 26 18:32:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Krowiak X-Patchwork-Id: 13437792 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68D8DC25B6E for ; Thu, 26 Oct 2023 18:33:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231127AbjJZSc7 (ORCPT ); Thu, 26 Oct 2023 14:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230205AbjJZSc6 (ORCPT ); Thu, 26 Oct 2023 14:32:58 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3179A1B8; Thu, 26 Oct 2023 11:32:56 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39QIFKOY015487; Thu, 26 Oct 2023 18:32:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=I8g4WZ45keuK5ZPWXm39AOm5K/MtLpijoPesCUiKBXg=; b=GrHbGePUe4epRO8pC6Fe95gdJFepVx4BrkOJvaVRxF6OI8+PGPTlabfvM21rDWkuf9N9 R5wI2rffjWFTK+p5Cxp1wf+lgnr/10haonQrH93PME/AfWB6kmuo2P/HycFLkBDorO4z HeRvLFLip8jF6G4M0Xynojn/Irc6LpGcLRH/U0CHFi5o1+UYNjREhaA7JPPEvLm7tMmj quq8fpKr5Fxiux5oHF6uQ7GEAxPWPo/58cruuufpAOZ/UwYrqLq/BASVFj87uqRwcF0e jCwrx5GiklqircyJRPU2/Icn9ZBTG/WUPKqYOeXpqedZvUrUfoyVoxfWmEVaNpcuIAKy YA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tyw7m0f0j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 18:32:55 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39QIGoCa019174; Thu, 26 Oct 2023 18:32:54 GMT Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tyw7m0f06-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 18:32:54 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39QI46gx024397; Thu, 26 Oct 2023 18:32:54 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tvu6kfs1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 26 Oct 2023 18:32:53 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39QIWqcB52035950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Oct 2023 18:32:52 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8EB2F58056; Thu, 26 Oct 2023 18:32:52 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B39FE58052; Thu, 26 Oct 2023 18:32:51 +0000 (GMT) Received: from li-2c1e724c-2c76-11b2-a85c-ae42eaf3cb3d.ibm.com.com (unknown [9.61.161.121]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 26 Oct 2023 18:32:51 +0000 (GMT) From: Tony Krowiak To: 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, mjrosato@linux.ibm.com Subject: [PATCH v3 0/3] a couple of corrections to the IRQ enablement function Date: Thu, 26 Oct 2023 14:32:42 -0400 Message-ID: <20231026183250.254432-1-akrowiak@linux.ibm.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: -KSTEzUt464HNTkbBlR6yfkeZcHLZmF6 X-Proofpoint-GUID: rmJ9Adbdo4cYaeUfMmxiJszqvmTELMVZ 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_16,2023-10-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 bulkscore=0 mlxscore=0 clxscore=1015 spamscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310260158 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This series corrects two issues related to enablement of interrupts in response to interception of the PQAP(AQIC) command: 1. Returning a status response code 06 (Invalid address of AP-queue notification byte) when the call to register a guest ISC fails makes no sense. 2. The pages containing the interrupt notification-indicator byte are not freed after a failure to register the guest ISC fails. Change log v2 ==> v3: -------------------- * Added 'Co-developed-by' for Janosch (Christian) * Added 'Reviewed-by' tag for Matt Rosato (Matt) Anthony Krowiak (2): s390/vfio-ap: unpin pages on gisc registration failure s390/vfio-ap: set status response code to 06 on gisc registration failure Tony Krowiak (1): s390/vfio-ap: improve reaction to response code 07 from PQAP(AQIC) command drivers/s390/crypto/vfio_ap_ops.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)