Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3504126pxp; Tue, 8 Mar 2022 16:08:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW0v+uyqtAyYGtOx2EpkP0lKyTxAAwHuJGe6z1XzXdPv3PUMm05iRJMi4fj1d+IvrJpQPb X-Received: by 2002:a17:902:bd04:b0:151:6cec:4b3 with SMTP id p4-20020a170902bd0400b001516cec04b3mr20185390pls.106.1646784497920; Tue, 08 Mar 2022 16:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646784497; cv=none; d=google.com; s=arc-20160816; b=ziyGPf7dGDp8jGSQqLg8gobGZPKQDmU8nIQUtM/7kSzsyPkot2xZX/Wbb/cNi9bGGk 9iz4dzF5G5XHv1aNmeBhVXOVvJjru2R3Cfa5TMM6aR2DFCPCYObjaGyhzLZik+4+xgIW /wh9T4zHJqauJJm/2sk13ClizKpIFD7NrPfW0Qej3DK2fnc5CStDwIYsZVHTHCxSHIkY PJhDg4v4CNiOy43Ll6LevvagE92Mdau0TNzrX9aE38yjETi44A++W2GietOAnGUFIjgl P0m37BmGpOEEsCJyBt+ljyZs9nX6j8Xu8DRo3Y7e4ANqwV9crKBuE6i9FmRLAKnUuQGZ uwsA== 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=WPiUHp7Llsw5SNrmHjEwv6thabpRY2uwdIC/chRd+9c=; b=wCGWAUNaCv2NQN/amQGESmv0j6xps+QAQ4vCEjZwX1vIBqeR1/p4+W5npjn+DhHjO1 TAT2iNsXcLNBIIjE/lGjR10ustleGSIdQJVRiYEbNm0EH3SOi4Z8eVD92gabQ3+2FlS+ ely4WKfERZkT0F9zoF0s9Ro4LmxbOhx1Mg4pR+J9Ug3nyCt6qN3B4pupeyroS9c9CX73 a9xUhvnXhZlYv2yeuyzOI8AE4GmYmsA7ooL/tjnk7o60tBVv9y4NfE4mfPjEBuZ3FjsS TkjSnLhR06Y7eAG1YaTN/bqcMVWx+l7j/hwG6v39NpQHp0NQogBuu7EG+E4ilZiYEx9E Yn1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=IteXf2of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z18-20020a17090abd9200b001bd14e030d8si3280021pjr.176.2022.03.08.16.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=IteXf2of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6FDFDE8683; Tue, 8 Mar 2022 15:38:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345638AbiCHKHr (ORCPT + 99 others); Tue, 8 Mar 2022 05:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345621AbiCHKHo (ORCPT ); Tue, 8 Mar 2022 05:07:44 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217D240915; Tue, 8 Mar 2022 02:06:48 -0800 (PST) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 2287j8pb012052; Tue, 8 Mar 2022 10:06:46 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=WPiUHp7Llsw5SNrmHjEwv6thabpRY2uwdIC/chRd+9c=; b=IteXf2ofpBG9LbAEPdQhWaJ0pj6HlOTLjD4d8+x+7+e9f9RUnG11sJ+t4+DvqIidPPQK 2nwMT2aXzMygMpdIOyL00xRV2sYBVzOIqMsDSkBx89HX+6QlDB4qdi4OkNVKCKmmY2p0 FBz3TBUdeLrvsrcMNru2H93IiBiBD6SyPYsJ/LfDwl8IxKgtlU5pZUxtWzb540JrkuqP DSyYbCjGfnSoo6LNraA8JXD8Xn1eWli/4slZfTRz40vOi4zHX42jo0guWed37vcqgaoQ 2l3Sj3yIVavWpeNwWol+r68AH7DhuTSvlnAK8VKd7yjD3CP3Lig3QJ4ACSXAv59SNuuP 4A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ep03ve2r7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 10:06:46 +0000 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 2289pSbT027404; Tue, 8 Mar 2022 10:06:46 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 3ep03ve2qn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 10:06:45 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 228A33Kc020419; Tue, 8 Mar 2022 10:06:43 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma06ams.nl.ibm.com with ESMTP id 3eky4hy7fe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 10:06:43 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 228A6etH49283388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Mar 2022 10:06:40 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6E42E4C050; Tue, 8 Mar 2022 10:06:40 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B2D8C4C040; Tue, 8 Mar 2022 10:06:39 +0000 (GMT) Received: from li-e979b1cc-23ba-11b2-a85c-dfd230f6cf82 (unknown [9.171.68.74]) by d06av22.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 8 Mar 2022 10:06:39 +0000 (GMT) Date: Tue, 8 Mar 2022 11:06:37 +0100 From: Halil Pasic To: Tony Krowiak Cc: jjherne@linux.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@linux.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.com, mjrosato@linux.ibm.com, alex.williamson@redhat.com, kwankhede@nvidia.com, fiuczy@linux.ibm.com, Halil Pasic Subject: Re: [PATCH v18 08/18] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device Message-ID: <20220308110637.2e839732.pasic@linux.ibm.com> In-Reply-To: References: <20220215005040.52697-1-akrowiak@linux.ibm.com> <20220215005040.52697-9-akrowiak@linux.ibm.com> <97681738-50a1-976d-9f0f-be326eab7202@linux.ibm.com> <9ac3908e-06da-6276-d1df-94898918fc5b@linux.ibm.com> <20220307142711.5af33ece.pasic@linux.ibm.com> <151241e6-3099-4be2-da54-1f0e5cb3a705@linux.ibm.com> <20220307181027.29c821b6.pasic@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=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: G9yLo1VpFU1J1bzoLhYxh5HJSn66nx17 X-Proofpoint-ORIG-GUID: EtQJUWOuC8QThu3OceJgqNtyPqcbOz5V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-08_03,2022-03-04_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 mlxscore=0 spamscore=0 clxscore=1015 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 phishscore=0 impostorscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203080053 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, 7 Mar 2022 18:45:45 -0500 Tony Krowiak wrote: [..] > >>> s/belong to the matrix_mdev's matrix/are fields of the matrix_mdev > >>> object/ > >> This is the comment I wrote: > >> > >>         /* > >>          * Comparing an mdev's newly updated apm/aqm with itself would > >>          * result in a false positive when verifying whether any APQNs > >>          * are shared; so, if the input apm and aqm belong to the > >>          * matrix_mdev's matrix, then move on to the next one. > >>          */ > >> > >> However, I'd be happy to change it to whatever either of you want. > > What ain't obvious for the comment is that "belong to" actually means > > composition and not association. In other words, there there is no > > pointer/indirection involved, a pointer that would tell us what matrix > > does belong to what matrix_mdev, but rather the matrix is just a part > > of the matrix_mdev object. > > > > I don't like 'false positive' either, and whether the apm/aqm is > > newly updated or not is also redundant and confusing in my opinion. When > > we check because of inuse there is not updated whatever. IMHO the old > > message was better than this one. > > > > Just my opinion, if you two agree, that this is the way to go, I'm fine > > with that. > > > > Regards, > > Halil > > Feel free to recommend the verbiage for this comment. I'm not married > to my comments and am open to anything that helps others to > understand what is going on here. It seems obvious to me, but I wrote > the code. Obviously, it is not so obvious based on Jason's comments, > so maybe someone else can compose a better comment. /* * If the input apm and aqm are fields of the matrix_mdev object, * then move on to the next matrix_mdev. */ Regards, Halil