Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2054576rdb; Sun, 19 Nov 2023 23:54:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyTJZiUze3w8FDmomKfXRNOX9TyGhhAYeB5HbfK8/aOTHtTUQpSHMEeNkPBpSXLMDF+D9S X-Received: by 2002:a17:90b:4c92:b0:27d:375a:e322 with SMTP id my18-20020a17090b4c9200b0027d375ae322mr4545837pjb.31.1700466870105; Sun, 19 Nov 2023 23:54:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700466870; cv=pass; d=google.com; s=arc-20160816; b=kg0yP6W/7EUfw2IMDaueRzJaEt49XdAONvBi9l9iprDZDnYMk6CscixorWLsooeB0P Xb+7uhJr0ME8QZp2IbeNmtD/kpARycmysXeUkaNvrREdM1kzSQDCgIY0KcYvrVSdL9Zd nyeWZNQgfuN22E7Y/QTZ6cxQSFSqUA5T9OxsCikeYI9NPLAxRU1d7L4+xx59FhU9xX+z PWbi5v7NDnMo1PTKuygJfN924NjFR9fQhjmppA8gEC6KLEabmyt4Cq1i+WhSpwduThy+ 0yEH728UcUvC1pU/ICXKYv5HZ+gMTZDTRcfUFW5Zg4AAMeXFclIfua2a8gJHU0oqfw8+ StyQ== 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=gXbl6yaNmYAygXQGhXABOZh3YttEfI2MJdn0fyfezOY=; fh=R7Nmc7uwsajqeaTRw2DwoJHxCq/2czVjpfDJ0C+MSfI=; b=AYAprQd1Cw282app+/KA6LF3HUAzK+3Io8QYixNjj8qAOoK1jhDoRGfv0LU4veXhcB UGK8bruZj6GsGvIYMsUQtTCgi1pH8d+mKXQbOIMgezhfpRpUp3C8z1F8jq8Q+LAeZxnT mZpHtMiTJmVIYHF7FkV8ORyuZc+iCrJtL8XDnhVwZyPVFr54jtMpw14xHue5JaNt0l44 RAFIYXqpTPgyRLG0puDt1fB7wFCvxJPm5QD1TDIoo2aZxj7aqbUx3sxPX0ak9v2HFKrZ V1T9GhxbxtdTm3HXmuCU4ONq/sUDjCIVAbzV3oHn5v14l3ivm3H3b7ZS2b8tcFQvHIPt dQxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T5qY8F3N; 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id cl13-20020a17090af68d00b002851017a187si4396327pjb.162.2023.11.19.23.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 23:54:30 -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=@intel.com header.s=Intel header.b=T5qY8F3N; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 634DF804C622; Sun, 19 Nov 2023 23:54:27 -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 S232065AbjKTHyV (ORCPT + 99 others); Mon, 20 Nov 2023 02:54:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbjKTHyU (ORCPT ); Mon, 20 Nov 2023 02:54:20 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D774B5; Sun, 19 Nov 2023 23:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700466856; x=1732002856; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=gXbl6yaNmYAygXQGhXABOZh3YttEfI2MJdn0fyfezOY=; b=T5qY8F3Ny6ls9leWEdHsqNrIuBBBOTKxXZBeyiDK/3ndSJ86pQTDXk0x Wu8vJ0PmJ/ADpXvPIEQqRCMJsULbUuMDKdWfRcwqK/LZ+NP79Yy3N7ns5 ew8sUlLN9EXrN7pjx5NSIV6xFqpcVVDbIsXn3t1kiL31Eqx4wKz20t86T AKJ1FqF3TiabdDF0lQ6V1VriGQxS/oqphKhDFbB7b0kPJv1ZANv8+8MHV X3TwfCAHfCAPu7g3lWIdbPnTcTc58oHOKpSop1Iztr5nqG3LOW3iITUtG DsJ+a9hBWuE+H7vgEhjDhNzDeJVauFmbSchfxhZSaOZCFFmpmyG6yzDxd w==; X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="455892689" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="455892689" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2023 23:54:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="836660276" X-IronPort-AV: E=Sophos;i="6.04,213,1695711600"; d="scan'208";a="836660276" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Nov 2023 23:54:15 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Sun, 19 Nov 2023 23:54:14 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Sun, 19 Nov 2023 23:54:14 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Sun, 19 Nov 2023 23:54:14 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Sun, 19 Nov 2023 23:54:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYenpfr3qD3AgANwraQMQwLyydQ3OzD6YH+/4u0KgNiVRCRs4lMI/IAivf7x6hmmhv/DeiTfGmRJ/uj9xQEU8TC4Jlq/KaMdyf/Oe2AdA0GMOM3+JwjHQ+CT/Br5r3qXinJgWaEgBoU4fi1vs2ZVpG/WmoySqwibvyvWMS9sNKSpLfwxP5bmE2zpuCZNHemrKg/6k12O9oJK3AEesmx0Q45NB9xCU0Wtokb80x7HcBHJ9vpGceVV8Qi6AGvGQhnby+MRmB2P/0qqfW2n+pKD/s+gGxOANZ/otsjAIqHCcKLnU+hQGS2XcKJZxoGFvAdTJkGz6DEwMnwiGvcxJUZW9w== 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=gXbl6yaNmYAygXQGhXABOZh3YttEfI2MJdn0fyfezOY=; b=I66GSZ6XkHAH6VHq1aZGsf4U7sTMEjZHCgiehLwz+CosKvf1u6jhEevHiGiZZlpKjMeuCrIsR5x5JoadjVFd/tqQMSuWlZZBm9FnloGNPG52CxSRCUFA/2+iT6eGIuqFYlHA0mL7fb+VI7b0P5MLDKHC2KAOkrxjmFOvs9ePyNIpkumFa3N6TFZpYGYJfTi4t7I4wIbU9Cat4z3W8q9vZ4Sgk/TVmNuIVkGv4p0zDaZlufEKYWXffG3eCFILamTlQ/oFN9FT+Cdhu6+PCM2Ff64k0a8GKMtNXy8dWaPukqYyYrHBaCJ1yNGUVXSO2APBGP5qKAUBiMRL20gB7CJ6aA== 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 SJ0PR11MB6742.namprd11.prod.outlook.com (2603:10b6:a03:47b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.27; Mon, 20 Nov 2023 07:53:54 +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; Mon, 20 Nov 2023 07:53:54 +0000 From: "Tian, Kevin" To: "Liu, Yi L" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "jgg@nvidia.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" CC: "cohuck@redhat.com" , "eric.auger@redhat.com" , "nicolinc@nvidia.com" , "kvm@vger.kernel.org" , "mjrosato@linux.ibm.com" , "chao.p.peng@linux.intel.com" , "Liu, Yi L" , "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 1/6] iommu: Add cache_invalidate_user op Thread-Topic: [PATCH v6 1/6] iommu: Add cache_invalidate_user op Thread-Index: AQHaGVcNayoxbcmcj0OdszlR/Hf6VbCC1vgA Date: Mon, 20 Nov 2023 07:53:53 +0000 Message-ID: References: <20231117130717.19875-1-yi.l.liu@intel.com> <20231117130717.19875-2-yi.l.liu@intel.com> In-Reply-To: <20231117130717.19875-2-yi.l.liu@intel.com> 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_|SJ0PR11MB6742:EE_ x-ms-office365-filtering-correlation-id: c073decd-2696-4c80-969f-08dbe99dd758 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C5wzHQsfRgQHQj4NAHkalmRGX8/Cqo2a1dxKXt3g4zrmmazbMDSOBEGqhLXNCgcT51bO4KVB4ZInox8atlhGCkrHPP/zqoLCLYLcKu4YpG9zKy9XrICe2PWFBIWUBRN3FgGsz0g1TH6Dk30f8kNIqXYzzqL/TJCwy6dmDhfnsGuYe4GgKPaKCANk3v0H+ptOa6ZsP7s+EB/BQJiqInhQcYh621yQ6LawvoyxTvQ6/chKPr8o3DpUwUrV+DaZwiofumHBdovosLpTyO6R5eKxWgFkyvkqP0EdZVaK9g7me6kpxgrSq1zdZiJAY6wKAic7v+EhrKUX6XkDITAnLiXWuVIAQic1YLnsGkwVcoLxylff1VGT3KeoBkuaanKELxgtFVcWcjHQxoo9TNVhrZ9x5bBl5vcBQd4lOvciX9g/lNXB2smEXQINs8pIcLsztyVmnbpVUG9UY6YxFJe76Di3L1QYaXkMGTndqHZk2Kd05tNZxz4v8z+q+31EycqbqWty1YdxoGhZ6H6tjptWKkGRwVf0CmR3BF+xtzJ7UZvlRmAFI8Sz06RWaVp0xMUPA30jTeU6ISkJxo/zCVhZ/ivel0VSTe9G58agGydcMzp246bPC/jwRRuhMrjC3WDbIL/J 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)(39860400002)(346002)(396003)(366004)(136003)(376002)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(55016003)(38070700009)(82960400001)(86362001)(71200400001)(110136005)(7696005)(6506007)(76116006)(66446008)(64756008)(66476007)(66556008)(316002)(54906003)(66946007)(33656002)(122000001)(9686003)(26005)(7416002)(4744005)(2906002)(41300700001)(478600001)(5660300002)(38100700002)(8936002)(52536014)(8676002)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2aLHawlDcmHWGsw4FfqwPRVeYVgngOJHemuzNhy8Bk9dGDKg2IpWW+l+HIh6?= =?us-ascii?Q?lNayRCpfqcxenKwjnkoPLFGMeXoKxZDx1N5pSQFsARNKYKFz7FoFogi9XI8q?= =?us-ascii?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KspPDwegUsRcbL/vo+FZOUUu59mup2Qf7uD?= =?us-ascii?Q?H39vC2Gr/upBg9bS7PGS/uP6iL7gEqlhsKTqBVUXAke/Xba7z0rkmvzDmjCB?= =?us-ascii?Q?NT0Jf/EUudeBrCdF4TVzCk8G8brfc2GeYYGW0BrrYP5/gqSYw9tcjFOSXdOW?= =?us-ascii?Q?FkULJfWWXmegJtHHUohjGTPkk8GHTE6bmlHd227Ix5uCFSSfEpVLpBpiMOXd?= =?us-ascii?Q?c8W2inHfNdND2mcRFp1TmG09Z1zQ7Iuw4QTUGecV/FH2O5L8mMpkgjIkVYVp?= =?us-ascii?Q?cBBJkerQzNoRm8GR6Z1ReFwFqY4d+KzyM0ysRhLxFWyeeH/S1GIjxF+m4jnA?= =?us-ascii?Q?15SBrrhVnLTAkahiK8kyP+7x2qkSfMiDGc9RJXnPZ9zlfOTL3oZzHibZUTnc?= =?us-ascii?Q?bMYPxDFCjaBBOqEyZHMVhFrW3kNoY6ex9YM+U+lFyz35meO2qpOOaYpR0W8s?= =?us-ascii?Q?iln7xDFO1sHqhC5PMaVTVpwqH2WYlChM3386IxE6HBQVM20nOCGBtpzXo6GD?= =?us-ascii?Q?Z9d1OYVz3XQwvEqMbp62QLkwP3ZTPK1+qZBQlvR3vDD7a5sggH/k8In/zFxK?= =?us-ascii?Q?8Wv7Q2C7UKV5iGIS3IdooOJTxXiRYJ0h5fGKzIPW?= 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: c073decd-2696-4c80-969f-08dbe99dd758 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2023 07:53:53.5007 (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: sFkmYpEJYHANYSTgrmxuiHKwQJuRJcadIJBERz3QzIEPWLoVcQcFd4d5mOZNGnRiBdIn76kCKsqnCkylEYGPIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB6742 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 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]); Sun, 19 Nov 2023 23:54:27 -0800 (PST) > From: Yi Liu > Sent: Friday, November 17, 2023 9:07 PM >=20 > +/** > + * struct iommu_user_data_array - iommu driver specific user space data > array > + * @type: The data type of all the entries in the user buffer array > + * @uptr: Pointer to the user buffer array for copy_from_user() remove "for copy_from_user()" > + * @entry_len: The fixed-width length of a entry in the array, in bytes s/a/an/ > + * @entry_num: The number of total entries in the array > + * > + * A array having a @entry_num number of @entry_len sized entries, each > entry is > + * user space data, an uAPI defined in include/uapi/linux/iommufd.h wher= e > @type > + * is also defined as enum iommu_xyz_data_type. * The user buffer array has @entry_num entries, each with a fixed size * @entry_len. The entry format and related type are defined in * include/uapi/linux/iommufd.h