Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2387273rdb; Mon, 20 Nov 2023 09:27:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiF2fMGQ1AXAvfqmSeG24lcHMwKb5b5KN/L4iqKPMjY/x46BNxGFKuzknQOwBZN2RbBlZr X-Received: by 2002:a05:6a21:149a:b0:189:5331:2a36 with SMTP id od26-20020a056a21149a00b0018953312a36mr4931678pzb.3.1700501223604; Mon, 20 Nov 2023 09:27:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700501223; cv=pass; d=google.com; s=arc-20160816; b=uORffwvHs9uVWIniJKksy0av4EgbPGyKiEnczh4g8spJvvRpBdjuT9dCGPLCR+yTHJ sg2t5ffomXgKqQtG4rru5C+d7W4Qj6XWiBCIwjJ0sQaUbEMxZlH/H4a6zK29tl5dHFTT ZRvTd+r1aPPAnR6tkIiXcOQ6kUHqVBSqc8o7JaJ5122MxjKjdB8szT3nLHIOYjxbE44b PNPGIaGfjsSiZJgNrOqX2Azgqjk5nydQra5NcFEw6KfijNq3P0AHijTQvdxVMfG3YEWd 5kCCNARN+b+c01znsFS1wFPIQMe8Tl9z1XJWXVdaQQLzMYVsnocgy2mlsUzTUqAqE6Fc VAvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5KTcE2P8rRPX3ABCXVh/tcLAyVOsyE7muUJvu+G6fUA=; fh=n+A77YWJ8NjKmP9kvitD+ca8WqzVSiBX3zP+3aHMB1A=; b=aiWPPLexDuTrBtqWev3AdaHxGGcF69LF01owPWFHwmzh5hx4OoamgM9LLS8EU6y5Xj 7b7CCcxr3B6JkysyA171vPmFW5QgjyBrKRC0U5ehafTNxeaoiqjdnEEm21HCYIbMazHs 6WH0PNvSVGPOgYjGn4omgCItedIQh+avDz5I0n+e6yfEGOR5bQMS93GT4lmmK6kSkZuE D3w5RRNhYTAqhcW5DAE9t+oVhYES048bdi6RwCG0ndyt9of4k5/2GJu8kuLOPvOnGf4w kiKP2LMCpzJ40IZDPWQSBsWu/BbFBBs49iYSGVcGgSeqXCi2VtNLMNDL5I4WA9DOa27U 2jIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Q64fjgR0; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d15-20020a056a00244f00b0068fcf194dacsi8773251pfj.92.2023.11.20.09.27.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:27:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Q64fjgR0; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9AAD880873A7; Mon, 20 Nov 2023 09:26:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbjKTRZi (ORCPT + 99 others); Mon, 20 Nov 2023 12:25:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjKTRZf (ORCPT ); Mon, 20 Nov 2023 12:25:35 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2085.outbound.protection.outlook.com [40.107.93.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69CCCBA; Mon, 20 Nov 2023 09:25:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YmYhixCcgUWUNmchSSemRf2Gqbv+XOu4Da8Cpe79a5R2nk2n/8iYmvInzrwNjfQmIuvxiSqb+shrIhLhj5WQXZUgAQ/aEydW4bASe/95r4yf10Ph3nf3hjD87eiNd1iSJjotJcgFkzYFaZUb7RjaVTyvAR4pVUlg/W7MGzJi8JtzPEkqOOVC+sx9tRRwr8LW41X6pPjxaiOqSChxlSwSzSo+Fu8EcOe7L6DR73cIq+plIUNSr/7XyT+/qMD4zqTl+gp7XRE87ZK9FW/2xGuiv70z2W1AOoLcgLYyvV4FmnpnMstLMFoewHgzesBt3kBNLrUyL8soPJylmpzCLQB+FA== 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=5KTcE2P8rRPX3ABCXVh/tcLAyVOsyE7muUJvu+G6fUA=; b=GYAsoRI4HSLdEAhRAc6VnOg+lksBXTWSZj03NDMhK1GhWy/IvExfwXOTdZzHYHG7n46zHqhkywg/IjpNor+2Dy4ojy02fF9V4XYC+hqRaVgKfMWaQxdxzmOo3gq4s0av8ZJGxvG/2o+fIKErpE0dyfiaqt0IGC2f8E/BmpfzoY+oDveZz6E727gmRcvyJx4MJDHlS9Te9Se8AMIpy+tnIcp8Vst2MZG0MJ+JNQ+rRa9JjJHHJ2FJLPRR9JDuJMByS8/NOIx4sOpNpQgqeddKFQVumvbJ2yzJ1sIPVOBD3llWD8LEhOPkfcF4CCk3YX/rNDTDoTj0+dWtr2CZRtF7AQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5KTcE2P8rRPX3ABCXVh/tcLAyVOsyE7muUJvu+G6fUA=; b=Q64fjgR0xnxcXUIgu0caR2UQPcbiz8Qlsvpvi0aRR9al4XqSsLUWQY81iCNVXBPQpLqMmB7CDVYBvO+Atq2W6bj4Y0zB0D7UV46+9Jnh/+vMvJro/7aWvtUqY7K7ygtA711yqxl44i8B9mnsKbYZe8VtX3jC3JeqXBR3yusyvUF4S3hmNpwTOiFFpQU0lcv6WffINneO6VvP/lG63OB1IpypexpXd8FcY0lsfBKBxqBw9Qaow96WTHnWpB2aEAe26GrgVO8GyH7hmDErDK2IMIWyIiXNE9pivb3445nYfL70p/A/IQWDomRHHhyjFas0ohIKebxARUT6JCx79bbkdQ== Received: from SN6PR16CA0060.namprd16.prod.outlook.com (2603:10b6:805:ca::37) by BN9PR12MB5241.namprd12.prod.outlook.com (2603:10b6:408:11e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.28; Mon, 20 Nov 2023 17:25:24 +0000 Received: from SN1PEPF0002BA4F.namprd03.prod.outlook.com (2603:10b6:805:ca:cafe::8) by SN6PR16CA0060.outlook.office365.com (2603:10b6:805:ca::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.26 via Frontend Transport; Mon, 20 Nov 2023 17:25:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by SN1PEPF0002BA4F.mail.protection.outlook.com (10.167.242.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.12 via Frontend Transport; Mon, 20 Nov 2023 17:25:24 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 20 Nov 2023 09:25:11 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 20 Nov 2023 09:25:10 -0800 Received: from Asurada-Nvidia (10.127.8.11) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41 via Frontend Transport; Mon, 20 Nov 2023 09:25:09 -0800 Date: Mon, 20 Nov 2023 09:25:08 -0800 From: Nicolin Chen To: "Tian, Kevin" CC: "Liu, Yi L" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "jgg@nvidia.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" , "cohuck@redhat.com" , "eric.auger@redhat.com" , "kvm@vger.kernel.org" , "mjrosato@linux.ibm.com" , "chao.p.peng@linux.intel.com" , "yi.y.sun@linux.intel.com" , "peterx@redhat.com" , "jasowang@redhat.com" , "shameerali.kolothum.thodi@huawei.com" , "lulu@redhat.com" , "suravee.suthikulpanit@amd.com" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "Duan, Zhenzhong" , "joao.m.martins@oracle.com" , "Zeng, Xin" , "Zhao, Yan Y" Subject: Re: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper Message-ID: References: <20231117130717.19875-1-yi.l.liu@intel.com> <20231117130717.19875-4-yi.l.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA4F:EE_|BN9PR12MB5241:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a24dea2-455a-4b9a-b0be-08dbe9edae55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UAP/Ow5Dn8OW/i2x7CWw8xpp/JVAFnmc0/lVSq2qXZxgfuZSnk6bYVNVBoAZyvZ2ZXqx75CgFPqCAwpafZ4OtDDDiE7MzBKrTa58llyUDvx8HuECs8Y47WVAx+HnfBNVjoDqm71/nyXaJsPZmfWasWsONQ2PrEGGkatsoo5RzFRggva9AqjvVnZP6FL73an9oa1YhZhTaZVyHG+wVZOkXydSIV+GSNfoVkF26+XunD9XfGHZYerf1CVqbw3tfzNOORP2EiEmmNQ9ZqzGKLB81wtjvOt/u3SQBWX0mXm3ZEyMlgEflpcCDBB3ZnqcVu+rIPJ1qiMCTotDwOKq7LULNN5TP3YLw3ee2mVNlxD6agce19oKNtvc+F6Upio0A6Tg3mlvS39hU3J8b9KtLCWoyFkxVK4bROHW8JGLKdpnf+1KLx6f+kfqIo47Ev8dDATzNON/nuFJ4KhvClvAEuyMYqatrRh2WknqxjBHeuVz+rcl3zCu6/ArnOlQHE6f1WtzkiLxSZCaGKOx2bosRSw7LyvH6SrP5poKfS6Y7TQoUE88IH+XauYTYpamk6JE7M4zStDrklvsWGVTyMucbtiVPnD24PGOs1VZPk1yrLsAok0qJ3j1wrV2M8qbDrOiMxI8sDu6hlvD3fAKAzOrUS1a7ZKgjclh/A4Xbc/VWp9CNXUHksvlkWJJojPBFHHYBjFMRyMvb+mIwquYTpBYMIR7so5gn3smDK+h1zxfJxgUe6TTjZyEZSAWgDOhraOqUOOKsXNORtpY5/YAhxi19+9/nw== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230031)(4636009)(396003)(376002)(39860400002)(346002)(136003)(230922051799003)(1800799012)(82310400011)(186009)(64100799003)(451199024)(46966006)(36840700001)(40470700004)(4326008)(2906002)(4744005)(36860700001)(8936002)(8676002)(41300700001)(55016003)(26005)(426003)(70206006)(70586007)(6916009)(316002)(54906003)(9686003)(5660300002)(7416002)(478600001)(336012)(47076005)(40480700001)(7636003)(356005)(33716001)(82740400003)(86362001)(40460700003)(67856001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2023 17:25:24.3023 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1a24dea2-455a-4b9a-b0be-08dbe9edae55 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4F.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5241 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 20 Nov 2023 09:26:10 -0800 (PST) On Mon, Nov 20, 2023 at 08:17:47AM +0000, Tian, Kevin wrote: > > From: Liu, Yi L > > Sent: Friday, November 17, 2023 9:07 PM > > > > +/** > > + * __iommu_copy_struct_from_user_array - Copy iommu driver specific > > __iommu_copy_entry_from_user_array? I think "struct" and "entry" are interchangeable. Yet, aligning with the {__}iommu_copy_struct_from_user seems to be nicer?