From mboxrd@z Thu Jan 1 00:00:00 1970 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 23F59C43334 for ; Thu, 2 Jun 2022 15:00:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236311AbiFBPAO (ORCPT ); Thu, 2 Jun 2022 11:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236305AbiFBPAN (ORCPT ); Thu, 2 Jun 2022 11:00:13 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9B61635C; Thu, 2 Jun 2022 08:00:12 -0700 (PDT) Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 252ElRtr030329; Thu, 2 Jun 2022 15:00:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : reply-to : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=9ZGzFHtuo+KLmxdJa7LKUjTf9KUlOisU8ToyMKZ8tuQ=; b=G2LZPsEj5VU/3+SkksJB3fZwQDZOE1RmN3pYuHt5Qaze+Fw+pQSKe9I5IG20IHNSxflV 1lsrYTUK2VPeEcHDVEoHeJQxXVm0nk32uNrog5lw0a5Ph9x1SvYAkarWwoFOuIu1TVvr ye6OBK5Hst093wSjZOl/yarWm96o/AG5QjTOiMin1jabNPYbsekQW+ot78P0TSPPkXOd QomIbYeM8wmzDf0qXr9RXBioY0mtN29drhWb/hLbKi5s7bw2bo9eMHSzGx1ERH18LKEz 75kivNKKVLPv7puszvPqYYwDwfvwl/1OCJSeoMpCc03TMHQK12a2BwhdK5i4u2I6ywn9 AQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gey9586w6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Jun 2022 15:00:10 +0000 Received: from m0187473.ppops.net (m0187473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 252EnWkR033941; Thu, 2 Jun 2022 15:00:09 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3gey9586vd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Jun 2022 15:00:09 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 252Eoc14007348; Thu, 2 Jun 2022 15:00:08 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma03dal.us.ibm.com with ESMTP id 3gd3yn0sgu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Jun 2022 15:00:08 +0000 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 252F076X8979086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Jun 2022 15:00:07 GMT Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 374B76A057; Thu, 2 Jun 2022 15:00:07 +0000 (GMT) Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 501DE6A05A; Thu, 2 Jun 2022 15:00:06 +0000 (GMT) Received: from [9.60.75.219] (unknown [9.60.75.219]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 2 Jun 2022 15:00:06 +0000 (GMT) Message-ID: <64bd26eb-b3ff-c3be-247b-c81681227e5e@linux.ibm.com> Date: Thu, 2 Jun 2022 11:00:05 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Reply-To: jjherne@linux.ibm.com Subject: Re: [PATCH v19 14/20] s390/vfio-ap: reset queues after adapter/domain unassignment Content-Language: en-US To: Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: freude@linux.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.com, mjrosato@linux.ibm.com, pasic@linux.ibm.com, alex.williamson@redhat.com, kwankhede@nvidia.com, fiuczy@linux.ibm.com References: <20220404221039.1272245-1-akrowiak@linux.ibm.com> <20220404221039.1272245-15-akrowiak@linux.ibm.com> From: "Jason J. Herne" Organization: IBM In-Reply-To: <20220404221039.1272245-15-akrowiak@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: xfBvXxMCbj73eV5sSl7FY7rVBH5QExKY X-Proofpoint-ORIG-GUID: 3lJK_ZqDUyWMiA-NfKWzQBKbc93qrgQa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-02_03,2022-06-02_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206020063 Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On 4/4/22 18:10, Tony Krowiak wrote: > When an adapter or domain is unassigned from an mdev attached to a KVM > guest, one or more of the guest's queues may get dynamically removed. Since > the removed queues could get re-assigned to another mdev, they need to be > reset. So, when an adapter or domain is unassigned from the mdev, the > queues that are removed from the guest's AP configuration (APCB) will be > reset. > > Signed-off-by: Tony Krowiak > --- > drivers/s390/crypto/vfio_ap_ops.c | 152 +++++++++++++++++++------- > drivers/s390/crypto/vfio_ap_private.h | 2 + > 2 files changed, 114 insertions(+), 40 deletions(-) Reviewed-by: Jason J. Herne