Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3462756pxp; Tue, 8 Mar 2022 15:07:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhq4SxBDUFi7w57xFmOds5mUo0VlVXgh14qFHoYf+3/I7LgwgsK3nRbNo9R0mvTxn7C/SM X-Received: by 2002:a63:8648:0:b0:37c:b29f:9c33 with SMTP id x69-20020a638648000000b0037cb29f9c33mr16163735pgd.590.1646780834132; Tue, 08 Mar 2022 15:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646780834; cv=none; d=google.com; s=arc-20160816; b=sFkTcktd0cD6T6eZF/pNQccOLbKU8ZsbPZTioJKRKtbY3URMEV06auXkPNDKgAXz/M bqXBsB2qHkOPN564zSrLajP3RfY4Awe7KjmjiqTzhwHQRjdm50Ho7vjuAmodr8WLP6Zr CvrpEEmcdBYuO/U3O1f9rdOSl7GuoTmbkTptss/y7XM9gmzw0UdxlYRIdqp1DUEp8s5O qGXnUxfC7uyVZQwet8/ae3sMPeXYfjGhyFDcpl283YRCD7UbknY/DHjjcWPlOBNy+EeA ntXHAt0rm/VS5dx0VE3F8IIp9qIk5bDAJkAPD9ikoP7U5l3sOsAipa2yObgq5LB3dfZH qsFQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gMr0TNEsEf4o8OCGCZhLnRNEH7GjXcuzCkk0iumKG9s=; b=UpnmBZy1no6SkaUrxVkcQxl/+XVJlKcXcpuj9A4rChooF5stsGhibOyedw2Wh/VNNQ Q+J2MEg8yaHjCi26D3kLAb+k/D11upaUHDYtKtCY8o8fN1ZBlkoPGrEKEHbSuuajSsNZ 9rQnCTrgxtzCUkaQXpMWllOdIoymDKqfZcR7UFG/RJ7twWkP4lW5s0bg274FUvokPhMS 7MCm8EzOedhgO6XVnVQVQmehnqEFmDPOMyQOOx+iUUfFnUwWRVcwqNtRxsG0n2HK8k5V VIRq/1z3IuV8iex4OOdsBwDz+px5Gl6IgeZl9RzaAbACBdYf58Bjh2ICpV6vRlOiKKX/ Vd5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QSoCD5l+; 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 l2-20020a170902f68200b0015195a54222si279184plg.30.2022.03.08.15.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:07:14 -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=QSoCD5l+; 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 A4C9C652F6; Tue, 8 Mar 2022 15:05:58 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347872AbiCHPic (ORCPT + 99 others); Tue, 8 Mar 2022 10:38:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347867AbiCHPhv (ORCPT ); Tue, 8 Mar 2022 10:37:51 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CEC84EA0E; Tue, 8 Mar 2022 07:36:55 -0800 (PST) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 228F79fM020896; Tue, 8 Mar 2022 15:36:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=gMr0TNEsEf4o8OCGCZhLnRNEH7GjXcuzCkk0iumKG9s=; b=QSoCD5l+mytYtmCnJLMCysKhjP1PuwlqsmFaPMX708d+NTAJcHGgJuFo9bE/YWwVgY83 2+RUByqUDPlWwcCM8Z67ABxYxYR5ojZKoh5sBYxlDQDJTp2Wy3gJo3reOc7EZSs9q9Xr Fzm7ERMlOPvBLaN8uaYOsuVu/eP1uvPwVcTSn0Vj83KrMJ+FMDfkx7Nx99PXciPx8Mxg SE5l95qoi8Mx5r+yo67YAMJaHFfOuJnX5HWqDzym/4SipkBOrLFNP8DCvM9jjUA3Xcde pWenAqfp8a/dMzFzzBSSmaV2WTLwzln0Et0bM/r0XqgD/usk2pgOaDudqix1RSQUro7y qQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3enww7f843-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 15:36:54 +0000 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 228DrQID006838; Tue, 8 Mar 2022 15:36:53 GMT Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 3enww7f83g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 15:36:53 +0000 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 228F7QGW021001; Tue, 8 Mar 2022 15:36:52 GMT Received: from b03cxnp07027.gho.boulder.ibm.com (b03cxnp07027.gho.boulder.ibm.com [9.17.130.14]) by ppma04dal.us.ibm.com with ESMTP id 3ekyg9u91y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Mar 2022 15:36:52 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 228FaoY530605810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Mar 2022 15:36:50 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7BAEE78063; Tue, 8 Mar 2022 15:36:50 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D06797805C; Tue, 8 Mar 2022 15:36:48 +0000 (GMT) Received: from [9.160.116.147] (unknown [9.160.116.147]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 8 Mar 2022 15:36:48 +0000 (GMT) Message-ID: <069b28e7-4ab2-47c8-cce3-186cd987834d@linux.ibm.com> Date: Tue, 8 Mar 2022 10:36:48 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: [PATCH v18 08/18] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device Content-Language: en-US To: Halil Pasic 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 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> <20220308110637.2e839732.pasic@linux.ibm.com> From: Tony Krowiak In-Reply-To: <20220308110637.2e839732.pasic@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 014tZ3LzC9Rq0mG_H_poaoTOzh4g8lz3 X-Proofpoint-GUID: KIM0uyOdsx2x71QiI9cPgnnZIsxrFejj 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_06,2022-03-04_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 impostorscore=0 spamscore=0 mlxlogscore=964 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203080081 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 3/8/22 05:06, Halil Pasic wrote: > 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. > */ Perfect, you write better English than me! > > Regards, > Halil