Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2659741rdb; Mon, 4 Dec 2023 04:11:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGapqjuddYtafuDHppilSu2RDdPiD+vX3K75yr+tcqnfvqe6aPBJem3ywiR36ShTkArwa1i X-Received: by 2002:a17:902:6ac5:b0:1d0:6ffd:f230 with SMTP id i5-20020a1709026ac500b001d06ffdf230mr1090331plt.134.1701691894922; Mon, 04 Dec 2023 04:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691894; cv=none; d=google.com; s=arc-20160816; b=AJgeNPg/Dl88BemTpodNO/3eGL1C2MaCCMj2DJfezSqWZhGNxpPuOMPmb3ZoTwlwSr AAFb+Jcjo1kP5wCTBqHCY0bMYOWWJFrA6THp+DEsWeBdij5eyyELzt0+vkS4hOXSjmM2 JEj5Gt/s2vnyAOpY66teiO+gextR3UnNI9ZcD28KF3K30QOalLmOLxC77fYK65apR2cj zBRkfoirMfmLYzhvWxJtHHlSN47fDQ1H1/z5I4V8i3QeDEL1N943fBaVY/8ZqV3741dZ tEpt5zxiWj7+yntM83NoOgcgZPronNt4x6j7ZuzGdBtVKKMywJ93NUuKeiXjQuoC7Qvw AVWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=AsOqQXAR0gQhB26871PoX5uPp0Ak4aLDT3tNkVI0gA8=; fh=TQdZ8Tvt77f6OJrxZM73+txLog7xKde9ykI9zXxVCrc=; b=egtlAwROLls0vRRxFO8ruMM++g1FDtGKmTjQ0Im1zd+bTmyYurHkPGmBDvi1FekGND bnRjWwuBwtRdj6sXWH6+taeyoC2Z1lnTJbi1C34OMGB7SG1bdfnET2Hu+r2vRtAjkZn6 7xKBnDcOAYefu8jfhSn1p/fJqaC7BvXoGhRezR2cU/bOliID6M/2XGt2kTujOkT+w9cC oiaOOAiNeRp0hBwDWti7VDkeAm3dMpngf4uwgAiu0vo2RTrDc1IDr1uFw6xnLRAX2UtP McVxsL0ELi+bpPrhimMMD/F3RRzjSGVZ/fESWJzp8UmYh1LUkU504kArHHV2As02m/+i vlrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eKX8zC9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t12-20020a170902a5cc00b001cc30cb3f9asi7461347plq.14.2023.12.04.04.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:11:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=eKX8zC9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id A091380A7325; Mon, 4 Dec 2023 04:11:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231348AbjLDMK7 (ORCPT + 99 others); Mon, 4 Dec 2023 07:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbjLDMKs (ORCPT ); Mon, 4 Dec 2023 07:10:48 -0500 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98EFFE5; Mon, 4 Dec 2023 04:10:54 -0800 (PST) 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 3B4BrJMB012672; Mon, 4 Dec 2023 12:10:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=pp1; bh=AsOqQXAR0gQhB26871PoX5uPp0Ak4aLDT3tNkVI0gA8=; b=eKX8zC9fFcvaGzMHZLW87SY3X6m9qnLxjuWXplZiyycVBaZI0Ho5oOVpLFpx4DM94RpL 2SUOTW1SjBnD7Jl2lB85iXnHrE4DCU+72kR2hRCLZQzdQ5YFHwHmPlqXwLiLcxp/Cg8G ewxwSc2QX+eE9UplY62eZ+Nz2j6Cehl+Ncqf9iRECiwCP0cQX+cbOULpLg93Szp0NRNk oId4+Ww8jpg8KipYyvA3c2lteV/ShtLMNI4mGLOhmagt3UIdtEV9+uNK4F0dW+RJ0gf4 yplCBc9aBWCCBwNYikZfslxdKtDSeU2Rm8DK6xqL8YLwShCZE0o8sOf1OJI3SOpCHPem 5Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3use9p8n4k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 12:10:52 +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 3B4C7s6f015706; Mon, 4 Dec 2023 12:10:52 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3use9p8n3e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 12:10:51 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4AmwEh012807; Mon, 4 Dec 2023 12:10:50 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3urv8dmrms-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 12:10:50 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3B4CAl9c5177860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Dec 2023 12:10:47 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B900220040; Mon, 4 Dec 2023 12:10:47 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F17F92004B; Mon, 4 Dec 2023 12:10:46 +0000 (GMT) Received: from li-ce58cfcc-320b-11b2-a85c-85e19b5285e0 (unknown [9.171.42.250]) by smtpav01.fra02v.mail.ibm.com (Postfix) with SMTP; Mon, 4 Dec 2023 12:10:46 +0000 (GMT) Date: Mon, 4 Dec 2023 13:10:45 +0100 From: Halil Pasic To: Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, jjherne@linux.ibm.com, alex.williamson@redhat.com, borntraeger@linux.ibm.com, kwankhede@nvidia.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, david@redhat.com, Halil Pasic Subject: Re: [PATCH] s390/vfio-ap: handle response code 01 on queue reset Message-ID: <20231204131045.217586a3.pasic@linux.ibm.com> In-Reply-To: <20231129143529.260264-1-akrowiak@linux.ibm.com> References: <20231129143529.260264-1-akrowiak@linux.ibm.com> Organization: IBM X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: udFSVoH8M4s5xBiha-8LsNCuMHQ464hu X-Proofpoint-GUID: qo-3VEq_SYMOh_Hi6ddOdqDiV-VjbLZH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_10,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=974 clxscore=1011 mlxscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040092 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:11:30 -0800 (PST) On Wed, 29 Nov 2023 09:35:24 -0500 Tony Krowiak wrote: > In the current implementation, response code 01 (AP queue number not valid) > is handled as a default case along with other response codes returned from > a queue reset operation that are not handled specifically. Barring a bug, > response code 01 will occur only when a queue has been externally removed > from the host's AP configuration; nn this case, the queue must > be reset by the machine in order to avoid leaking crypto data if/when the > queue is returned to the host's configuration. s/if\/when/at latest before/ I would argue that some of the cleanups need to happen before even 01 is reflected... The code comments may also require a similar rewording. With that fixed: Reviewed-by: Halil Pasic Regards, Halil > The response code 01 case > will be handled specifically by logging a WARN message followed by cleaning > up the IRQ resources. > > Signed-off-by: Tony Krowiak