Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7126910ioo; Thu, 2 Jun 2022 23:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydfz9p6uDB2EE2Sdmmj8/vpmsmL2TyU63cpPqv8FE9/6lHv+4TuLFD9PMjaKSJheVXVfrj X-Received: by 2002:a17:907:1ca3:b0:705:5a6c:d113 with SMTP id nb35-20020a1709071ca300b007055a6cd113mr7527193ejc.535.1654238123062; Thu, 02 Jun 2022 23:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654238123; cv=none; d=google.com; s=arc-20160816; b=P+Y82gZ2x0rWHKoSOjYL9jhvw/iUTFtuafa6H5GAyrw8geWBtlJcvyxn46GXH0RC6m +hFAqVSzfvCahaz/DV/hV8hlpFFLti3Kks3/+kR1aRtWvVbq5FmVaXHQKrotc9rgRZCA XuXXgB5Xn6kqURHldQMHGU2VzqmWVS3pYgcyk4x84h2YNsz5obiqPzcsMJh51rfnNOCN CVfxzLXmSf7l8ZAwZ+cqLUm9uRg4/911EeiLxetiNVpbv2NDelhvWrDfoQ1TYoE2lD37 bojZYYuO/bhVKfeoWN26D+L2Fi40VKHbPyPrQt/0NKf4ApjILru4/0i+Vmjst6D/kTut vMrg== 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 :organization:from:references:cc:to:content-language:subject :reply-to:user-agent:mime-version:date:message-id:dkim-signature; bh=9ZGzFHtuo+KLmxdJa7LKUjTf9KUlOisU8ToyMKZ8tuQ=; b=aiK/nFzBUena6GOilIK8aCk+5rmksFjv1G0fG4+tLQmgGv8ccNbWOagFT3IPP/bBe/ NWv0I4Pejz6qIGYCJ463oT3Hw9CoznsfAWddVNvrkd8K3V/AJCVr8ftAli2ZJvGk93H9 Mh/OnfvuL1CltACu6lrCzoEm/Qt8orYLMq548UJkdGbRolAjvdscPHA/KyrARVU/0uRg r4BU98uyoNO4Inlsvqn5d1cGN5SLkcBb5J6B9LDjPpuYOahvDw1JR2tjz879cDQaFxKZ PgnfWQI9aTfBWBVEpes96djBJ75GfqriZ0VRkPoyLYDRxso/mjamE2b0vLds1Vz93VHX WGwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=G2LZPsEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id og43-20020a1709071deb00b00702f7cc84b3si6030803ejc.47.2022.06.02.23.34.58; Thu, 02 Jun 2022 23:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=G2LZPsEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236319AbiFBPAP (ORCPT + 99 others); Thu, 2 Jun 2022 11:00:15 -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 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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