Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp968580iob; Fri, 13 May 2022 18:03:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmAh2ourOLWXG7zALLFb4aClJCSRSskSdnsyVakDazYhIAsmLybI/ZP/3pd42zauCzA0Xr X-Received: by 2002:a05:6000:1f02:b0:20c:9be6:3e04 with SMTP id bv2-20020a0560001f0200b0020c9be63e04mr5833719wrb.456.1652490212970; Fri, 13 May 2022 18:03:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652490212; cv=pass; d=google.com; s=arc-20160816; b=s3Zl6saGCSpG95Bqvs3Nof5yC+UN4OrNXzwxUqOuv1q44Pbp8V9fgGsU6mErH6xZDB Qt1VydUkUGCqGOd8E8fet4IasiAkWgifx4MvcX6FuJJCPQAuCwu2Q7Kh13mPfyW6A0EN xyG5ai4M9+FgRdY3QU8+D5+q3GVvrr8Rgf7/U2CFhiEhIT4jZfuFq6h9SOdv38co5OcZ kv+VClGK5gz+D7VchcSsezpZ1CqDcYinGclonAkjEwyF0KpBstmnU7uR4hlNePi00gjM i8yb6NAyJegENcBBEjKoFJziEH1CPrqDq2ZYWJFfreyoPYFnwAgZgbBohIKB4ZNGm2CH Z8Pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:references:cc:to:from:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=nn1715Akq7GpKv4/VJSOq+PUt5oQHFDmvxeMPMsZL6w=; b=sPggMZxXb8wsbCio5G00SFtnQWxRD2o9XOHE/B5Dl+aFgY9OquwgJSc5uHqIf/qGDo QCIdT+Lxx9r8WxUBE1IIMx8MmaspUh8GMIsfLDEvVSU9ygIJ8BgzBNTPrd+fIdJ6Adad bht31Fa3koa/SCepWYJ9As82yhURI7lS+6sz7qFnaosF57pbZjoxC6Zo9Oneyk267HQD sSMq8bb/XhNSfdEZjyKyXrTseWyAETlZ0PnUd/JvpSfW1OxTlDmOIFAVnz5sCugWwufB 6BTU6TKiPiJ8DbIZ7JBRcep/4xdzVFIDmGlmA1bTn/ae3fhYb4PrwB96fr9Yfl8o8Bct WA2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b="LCON/tyj"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uSOdK8QH; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f1-20020a5d64c1000000b0020cfd39a39csi270213wri.429.2022.05.13.18.03.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:03:32 -0700 (PDT) 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=@oracle.com header.s=corp-2021-07-09 header.b="LCON/tyj"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uSOdK8QH; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B625F37293F; Fri, 13 May 2022 16:36:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358654AbiELVPm (ORCPT + 99 others); Thu, 12 May 2022 17:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358638AbiELVPl (ORCPT ); Thu, 12 May 2022 17:15:41 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9A61AE for ; Thu, 12 May 2022 14:15:39 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24CJTvDV010445; Thu, 12 May 2022 21:15:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=nn1715Akq7GpKv4/VJSOq+PUt5oQHFDmvxeMPMsZL6w=; b=LCON/tyjyEICMd4cPpL374NtjYJB/Z5MMn39quyL5af+UnuCQ4CeMwQjUNwrQa2ibMF8 v7wM2o9msdHIlPnPW3VaoB7VJfts7k76FQVY1dJ7xRnXUX858pehnaU5SYoEy97F0+48 2AX+jpfZD1cKglEQJPj+ss7lo5ExX2gNeFEds42G9Ys6Oyz0Rb8NI88HXPMnlnaUzOi/ 4iYKvdorkyVbEnZRC9xpk0+iS/UOptV1JPJuGQMvqc8leWE9ebxEsh6/ZrumBPCIVpjG XuESrhND+nc2mOhUqT5SuOvj7RFJCMq+s6qQkpD0uFJVCZOy7lMjNpMWW2TXVkA8I0A/ EA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fwf6cdk9h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 May 2022 21:15:34 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24CKtjPl017747; Thu, 12 May 2022 21:15:33 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fwf761wnt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 12 May 2022 21:15:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bK8k8dIOxoNRZCuHJKEpSWTtC1k58+W0rEr+7oY9BUS+VkmUpenSPoXoUUFaDYPrBgn+GMxN/+Z+4QbAD4YqEVjJ9SwWQwPLzZiEz/xDNKlKkKWsBcXJ4vBhSH3luqcbksf5PRyC9AvVt148ss1A+mwrq/cyrXtthTgU0beo4vXMZPTd29U6N4yOgkNPTX/assTCRmJ5AzijSAKHkmUE7CWuG1eJcr56rYQtlCfMOGSw7FSTA4S1OpLLzWxmtbsTcsTI4jDh9Ia8Ss7rYYIO3fUVZl8Gr0XJfARJGrKWIN9cIdmLuDMEVVSsJYW1DtGyFMcL/nWqKH6ljH4ZBBRqSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nn1715Akq7GpKv4/VJSOq+PUt5oQHFDmvxeMPMsZL6w=; b=cixf3mGQBmkzc/RB44ZEEsK6FPSpXGfyjWM+7hb/1W62RSiL/0SMKH7IyiDmBYEenH7/dKmbgFr5cJ8YL6smPp4pcg4/p1CTmMvGrNQhkoDELonOZrpja5ylVtNpX2+oOGEydvft7+22G2D36JY2LzThFD2qS3g1levhGLlszQJkV0HQYPG2KZmWXNcmE/lyBzKaolHweWJvHtCRXfLdV8oH1HYdHprIAG9Q32mtiWQbudz+iyTT3tpKELnLSwAI/NkSYE6OqTFjt0dii0S2NGZIlO50LudGdLfyrb8KJQhdAD2Vjh9jPFFBToHUlFhx2tH80m6u7ufJJ2TipktA6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nn1715Akq7GpKv4/VJSOq+PUt5oQHFDmvxeMPMsZL6w=; b=uSOdK8QHO4B/NHVVSG6Obb3O/TCu2kwxp5hpy+B6chEcCIM0xwZxRj0GdAT1xv+3q4ZHtHXecOX+6BGiEUHbvlIdS3uM3QnPSFA+yARiKg0tsK/+UAOQANvLmj9jet6T6gOzF+BIRxEuV1dP1OG4U6pLwudyzu6Lbckj1IQqoNY= Received: from BYAPR10MB3287.namprd10.prod.outlook.com (2603:10b6:a03:15c::11) by MW4PR10MB5863.namprd10.prod.outlook.com (2603:10b6:303:18e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.14; Thu, 12 May 2022 21:15:30 +0000 Received: from BYAPR10MB3287.namprd10.prod.outlook.com ([fe80::c89:e3f5:ea4a:8d30]) by BYAPR10MB3287.namprd10.prod.outlook.com ([fe80::c89:e3f5:ea4a:8d30%2]) with mapi id 15.20.5250.013; Thu, 12 May 2022 21:15:30 +0000 Message-ID: <5d93dfcd-22cb-8e5a-1dcb-c6de6772b789@oracle.com> Date: Thu, 12 May 2022 14:15:27 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v5 3/3] vdpa/mlx5: Add support for reading descriptor statistics Content-Language: en-US From: Si-Wei Liu To: Eli Cohen , mst@redhat.com, jasowang@redhat.com Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <20220510112734.205669-1-elic@nvidia.com> <20220510112734.205669-4-elic@nvidia.com> Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR03CA0338.namprd03.prod.outlook.com (2603:10b6:a03:39c::13) To BYAPR10MB3287.namprd10.prod.outlook.com (2603:10b6:a03:15c::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d1fa7347-b661-49f1-92db-08da345c8b11 X-MS-TrafficTypeDiagnostic: MW4PR10MB5863:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GaLL5e3LkidrDSB/UuuIrdtrXVxEVxJXAcV8cwbCzfXYP2PzaLBpr+ETzB0Vi3haxHWPcSKAHborgM0I8Rxw9H3Zq4PySFWyIw6cF1d5sR+GPU0FvkEG5mnbvJGX8ulyrYW3KydhHbACiK3k6j0Ie0ak3ChubFBml1stZih1WP999YzsUo8ozWDE0uNx2LTVY/BCDVvDL8zDeF5WNjyGD3rBZlG0Kmvj/uupvt9CWRQwAeIzLpLNaK95fQ8OzUWJ4d4eeo1NL/q2XTnRAV2VMDI+bzJ/HoKsKHYHvkbQt4jmbz7kSaWf9b2jy1fyXySV/cL4hgBlyF8slIOnEwKPJRptjGhM8LABD6AW4gOtQMiD3Uv/CCmuyiRT7B9I3HfeDazHXntvOUo+OZFjAQOzhSuQ6vMn77XJfIHiLxwzDoxy8zTkwk7Dtd+ThBQbKdKGa4ZyGwn1+0NhjzjYr5zP1jpdRLZ1Uagql4n40ZJ2cxNs/WpF1eTTknhZZNGsNuGdyZ9e4Ze2CetrneUmlnqYSpyELgWpmqqQ+Kn0NfqU/nMbgKFC0KaWh8nEs0wGQchNWuUZCjtLlSvc0u9tVOmGnBL8Q9NDPFeZQ8FEoytby9yWRu04ci5QWtceKMo/1JXcbLxTtF0EJulZBXlbVhCxqPb0I3n+Zn8y12AhGWITM2jgDXdbpCUSyb7vWKsux4ZP7WZhtbrTedkImwpYXJy3ky8RtE9dRWtdMEouPBseNgU7DLCV8owzTXxNOKt61tce X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3287.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(38100700002)(5660300002)(83380400001)(26005)(316002)(31686004)(36756003)(66946007)(66556008)(66476007)(8676002)(4326008)(6512007)(186003)(86362001)(53546011)(6506007)(36916002)(2616005)(6486002)(8936002)(4744005)(2906002)(31696002)(508600001)(6666004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YWJjcDBUNUkzYzZrcXlyaUlaV3JlM0pDOHp4Z1dYdU1WTDlLbVV2QUsrM1kv?= =?utf-8?B?UlRUSVFkVk85UG8xaU9NMERnMWp3VjVreER1dVNyc01wQXFmaWpma3o0LzVE?= =?utf-8?B?SVRvZ3Z0ZnJST3NCdlpjRTBrM0ZTbzZtQmZxSGRlYVlrWklkNFdFY2drWFc2?= =?utf-8?B?S1IyTHh4cVRXS3JabGZBaWJ3ZFVKdzNsU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a3pn?= =?utf-8?B?dDFwMEF4M0dqK2thb3pLenJpL2dkOUNKSU1TTGNpNHZDSnl0end0Ny9pbHZV?= =?utf-8?B?NHpKa3VoeWRQSVc4RzBEc2cyemhaY1BpYVZuNlJIaEFyMWVOMXFTRlhNMS9E?= =?utf-8?B?YW9PRURjaVVhOXNsd2ROMlYrU2RvY2lEMUhWNktaczB1cUdvS2RBeWx5WWZh?= =?utf-8?B?UUxzUFExYS9pWU5nY3FhYjhSWm91Zkw0U2RCbnZ6dXJlMDRtZllnUTBZZG9O?= =?utf-8?B?U3VhRUFyU0IyYWoyUkY1MUt4b0w1b3RqM0VVUkZkWlJpbkcwSUlxb0E2a1Yr?= =?utf-8?B?SitxSGY5ckVnL3V1Wm9KMWNJTndLUVJYdCtTU2R3ZU1UTTlvZUk2Zz09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d1fa7347-b661-49f1-92db-08da345c8b11 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3287.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2022 21:15:30.2416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LuNDaiy3YCybwDEJcZ8+Of5WNbYgq9xfKC3Hcswqj2ybnvticbUPWqD3i/g9Z2o4pgOIcEJALWJCYMd0z5Y73w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB5863 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.858 definitions=2022-05-12_13:2022-05-12,2022-05-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205120088 X-Proofpoint-ORIG-GUID: _VvKMZg7Ql9JcWc-mdqziPVZCDG1HrTb X-Proofpoint-GUID: _VvKMZg7Ql9JcWc-mdqziPVZCDG1HrTb X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/2022 10:25 AM, Si-Wei Liu wrote: >> >> + >> +static int mlx5_vdpa_get_vendor_vq_stats(struct vdpa_device *vdev, >> u16 idx, >> +                     struct sk_buff *msg, >> +                     struct netlink_ext_ack *extack) >> +{ >> +    struct mlx5_vdpa_dev *mvdev = to_mvdev(vdev); >> +    struct mlx5_vdpa_net *ndev = to_mlx5_vdpa_ndev(mvdev); >> +    struct mlx5_vdpa_virtqueue *mvq; >> +    struct mlx5_control_vq *cvq; >> +    u64 received_desc; >> +    u64 completed_desc; >> +    int err = 0; >> +    u16 max_vqp; >> + >> +    mutex_lock(&ndev->reslock); > I wonder if we can change this lock to r/w semaphore too, otherwise it > almost defeats the merit of converting vdpa_dev_mutex to the same. > This change would benefit multiple parallel readers. It looks like the lately posted v6 series missed this change somehow? -Siwei