Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp115097rdf; Mon, 20 Nov 2023 18:49:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IELDWA6O8mJtqk2tREyMAfrAJvap3GKXj6O23rDY6RyIW+CeK37zcxh8M6tQ/LrmDRWQiu7 X-Received: by 2002:aca:1815:0:b0:3ab:9afd:8efd with SMTP id h21-20020aca1815000000b003ab9afd8efdmr8557921oih.40.1700534942503; Mon, 20 Nov 2023 18:49:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700534942; cv=pass; d=google.com; s=arc-20160816; b=CbprN7clOxGtih9W09XVGQ7yTZJYUsCw2oITHie2bwT4LL7ae3EvKv9Dtp9u/xOBN9 5kcCSnrwVj9VezACjbihLeSaQxDIwE0//Wq1HGyY/ysKbzi/rYdQGp2P9tdynE1QtWpV pogc2mTZW3is/8bWoexNf5EzRUTAO6DYeNqlyTpKsri4UYWruvI+99Ci+TLyk3I8A3MR 6v/2Vs+eEmb6i8fr1A+N2uotjQZTHZmFY5KsH0sw0pDf5via2e6BwWKHMdliDHU18U04 7PhJbfvnkyfgXSMUpnCTf7pbdNI4CEbIS9ULPSgyEX9xPXw0JM8J7IpJgTlY1eAxjKsN BVhw== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=OiAuBvNvNBUWilHTsa+mIPF1Zbrt8eA/nmfUJvgp1JI=; fh=nJJGdUHxKMmo+xXzWhzyJNy31w5/9qIbNO0Vup2s+s8=; b=m4JSFuSihSsa6MHs0e9uA+gyPIV7YSfzwN+Oe+QEnJ5y+LAMt88ksVJy9f/HfZW6l2 0voZCCLq8yG/e8lkp0BWnW7CHDwYJY7hTrD4kNGcLSpIO1OeiC/lmOKmwKnCssrwlO9+ c7HYlG268PnMq8fBiQyxVLGj9M+u718vytM4nJf0MDryfMOL8aJEk8b1wwWVwEqct4ur RgTQmORC1Klt7whd7o0iD2x0GCa5IFWOe/WFqF1d2F73zrtmXAKJxVNOjJFyq0JJywFs Y4+lUq1I6ZsO+R4EZnzRn7xSX7Fx1edy/2UU8I4bdPA/FbMJkvCJ27effhbXfR3xiqIW dqHQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=niYbVI4U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e10-20020a63e00a000000b0057d7cff25b8si9183341pgh.198.2023.11.20.18.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 18:49:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=niYbVI4U; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 30DDC804C645; Mon, 20 Nov 2023 18:49:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233133AbjKUCsx (ORCPT + 99 others); Mon, 20 Nov 2023 21:48:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjKUCsw (ORCPT ); Mon, 20 Nov 2023 21:48:52 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE940CB; Mon, 20 Nov 2023 18:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700534928; x=1732070928; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=OiAuBvNvNBUWilHTsa+mIPF1Zbrt8eA/nmfUJvgp1JI=; b=niYbVI4Uj6qrQBnlJvoINMpkjJ1mSoSe3LSBnBY9oXE+zg+yxzT7NZea XoOidIdw+yvXlmqL44lgNb/hot+lYkfsoPZUYIuSaRuGt2gPO+x68LQw+ Zh84lH8ZpGVdOgP5pgMx+FcpM5wIPMQe6el50PFvpbC1paU26nTjC3ca1 uJpLyA7m4mLo2PrqRC2iTAHAZPspKvX4ZVaGqts6UYzUWbU61cOD3ezYM DgHSN1q2GLM92RtKddyc3Jme8ocXxSe0GuFFB/3UXqIyApXEy+KPAmZ/Q WfBRgyrKuv9QTq0bpwvQMQ6embjisIkhrSRagw/r25fbe4oqcsud8iRrj A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="456088386" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="456088386" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 18:48:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="742896571" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="742896571" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Nov 2023 18:48:48 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 20 Nov 2023 18:48:47 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 20 Nov 2023 18:48:47 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 20 Nov 2023 18:48:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g2Ddtq6HYio05LjhWKPWz1cQ8VxInojVSuQh5p26TBePQfMt43AyIPAGh3ezvlT9TkDoyu+Wgy8wMZIlVci+X9IGnGHSqZ6jqtf/ZO28XIHYzfEZpmPKAR3tiEQ6MiJWoly/xSR/iG6iyrB3YOr+B4YYhgRc6yb6vJho+r104qlZMeyOzAII5MewYkUZQOq9VpMseB/Ivk1sHOWsGmv9DmbiGgc/v8Vo+S8wVNKyu+xFq4P1KXaV3z7AiwCpc/K0jDXIbGmxyueVLDICG8I0raGJGrzGyWg7YQfkQ7CPFxg+5Qc/dlWNX6VZ1HcUT37hDUbSHFAVLI6kXLBDccpvbA== 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=OiAuBvNvNBUWilHTsa+mIPF1Zbrt8eA/nmfUJvgp1JI=; b=VXriQ5rlr20iA9LtzXsrr2zUSDHQkoFEVI4iIKtIjp8RmmjHorv6uiVYVuCl5rjr0osb8QO/TweaofEaf9WxDi5NwFfVOLDGLwZaHeXEXVJTJBM7wKgB5NQ3mEatPArtjuW1aqViCenLADmONhr8UZaFuCD5D6UKsS8O4Lda9nQ/Yi1ekeSuvSID4BlxQ/kuxRiPTc6QkYxO2MS8McCT2QvDso3bTIyAi9jrOFrF6NihxvqEZ2ok+6pfI+kGXtMtq5RV0iU1fja+WTy+1K2Ry7gCiYFdhTulebS/fWvuozmQxyPVVYeu830a22af+PqqbjQY6K+jQNjwDkOPEso5oQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by DM6PR11MB4612.namprd11.prod.outlook.com (2603:10b6:5:2a8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.27; Tue, 21 Nov 2023 02:48:40 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::e7a4:a757:2f2e:f96a]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::e7a4:a757:2f2e:f96a%3]) with mapi id 15.20.7002.027; Tue, 21 Nov 2023 02:48:40 +0000 From: "Tian, Kevin" To: Nicolin Chen 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 Thread-Topic: [PATCH v6 3/6] iommu: Add iommu_copy_struct_from_user_array helper Thread-Index: AQHaGVcISf8BaZEQJUSSGRR/7aBQN7CC4RvAgACZOwCAAJ1hAA== Date: Tue, 21 Nov 2023 02:48:40 +0000 Message-ID: References: <20231117130717.19875-1-yi.l.liu@intel.com> <20231117130717.19875-4-yi.l.liu@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN9PR11MB5276:EE_|DM6PR11MB4612:EE_ x-ms-office365-filtering-correlation-id: e7bb829c-de4a-4356-a99e-08dbea3c5e13 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Fpt/lkk6o8eRfMe4hoU+km2539iG9XhSIZ1fEDXfquk4tNt+2piQ0RXYPtHFVM+JN/lkcP3Z55AE1xLX2dsGiUkr00vnzQxDh/2E4EqdrqFmGIKosqdczOdtnxrWFz/MqkCyy+rNQkI6wtd4XaaZG96lcP8KWOo8VwgO9Kr2+HiP5MBI7RdnSLk4yHlS7fuCcN9x6JMICaE9C0ehnlj1sBfBCrXyHnpfTZOU4ScdxGGM3zyR8P7Dej+7SUn0ybS+XuF22p+SxQ3GCwbchpDHDmSELku1mF6Kl4AF5fTt61I8DzAQ3q1AEqxnaeh/Si/wW5nBf9rfizNXj6kTGwM/+JEA+YTWLGyzwmEsw4vFgj+0k2CiVxBViL8rm+7P0BX5rWNIml2qfUUT3k1pU6sGh8FgdphMYjx4kkrMKYc+wk+FFPEi6sFKlaPptvBKvU0/l6RSFHLhFzl3IjAvOJ+EOKSVln/NhxczKEU22SrUMLF00iPEL5Aei/04b0s2PZFmcFDK4/viMJAhgJcV+bt56mx081SqiayH51qtK1L0wo5qacvo2Hyu6vUJHtG8D+6AnCxQcEHP0nj/P9f67l7NQL/oAsr2GSBkB3hgLhspRk2rid93Dlztkb9UqqsISkHC x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(376002)(39860400002)(346002)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799012)(66446008)(66946007)(66476007)(66556008)(76116006)(6916009)(64756008)(54906003)(316002)(7696005)(9686003)(71200400001)(6506007)(26005)(478600001)(38070700009)(38100700002)(82960400001)(122000001)(33656002)(86362001)(55016003)(2906002)(5660300002)(7416002)(4744005)(4326008)(8676002)(8936002)(52536014)(41300700001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?n0rVZN2KLNh3JsPz/wc5sRXGuQxYFcOAClSffj/WUkVULYJ4oinIFLba/lJs?= =?us-ascii?Q?8xh/F+YiUfHj5aD1FiLUwG6yscMgUggASinpypZYRvL3zWmOe5EQchfIEq8q?= =?us-ascii?Q?fR9i3SZBmmOvdM5HvpO8RmZXBwL38Iw7YQiFUMkOuRohIoH2ntlvsQl6SWVJ?= =?us-ascii?Q?F+WuVXo84VjQHMfMfG5WLtS7kUwH0hLmSn6F5fjIO4bthTZ8nMnh24rRknj8?= =?us-ascii?Q?Uf3cDiFxHX3XOgXSXWYc89aXK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q?s80XNVYSwPpft+8L6GWP5qLuaim60kyBzR8qDQbGN0+qMiSNHdyW3Ni4jG6R?= =?us-ascii?Q?tDT2vgVSklmvQS6p5Juq2GGMkTWH+by+Sqov1ldkpyqBfHD4pOKEEBcgjwJv?= =?us-ascii?Q?fJSMcgjIWbJxBlNuDgjClTRmwEfwcjBsGkODRIw1oYwqjD4z3dcJk7DoUy1e?= =?us-ascii?Q?HvWdkDiTwynUNiO/Kj6+SH+3gATP7VKPXBEIn4AgF0LXC3VgTkd85/sSgmsn?= =?us-ascii?Q?vAqXH4OWqoEtJT2pg7210bUN+uddvNrh1hPqX1YoOCb3Nc1CU14l104MV9Jp?= =?us-ascii?Q?xhFhYk0UiISxWzcXzW0SP+d5nebCaqaN0SA/0ItHLpaCE6HDiykPSZQgyqEt?= =?us-ascii?Q?/7Miazgz2RGOSCe9MVEshXwqtmfgjfAbvnsqMR0fRFpWQMXrM9pnQ32XzDpn?= =?us-ascii?Q?5Jekj/WnsgJzGI1Inv7caf/OoEIqhGkXJo8Ff/mE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e7bb829c-de4a-4356-a99e-08dbea3c5e13 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2023 02:48:40.0338 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OOnw/pYQaA590/zFldq2xoRkRb0kTv3RzJCNdPcgIKKJHsqUzaO5p5+38k7h6T1iVzYImaUATNFSIytaOgBm9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4612 X-OriginatorOrg: intel.com 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 20 Nov 2023 18:49:00 -0800 (PST) > From: Nicolin Chen > Sent: Tuesday, November 21, 2023 1:25 AM >=20 > 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? >=20 > I think "struct" and "entry" are interchangeable. Yet, aligning > with the {__}iommu_copy_struct_from_user seems to be nicer? ok