Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19EADC636D3 for ; Wed, 8 Feb 2023 08:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231339AbjBHINI (ORCPT ); Wed, 8 Feb 2023 03:13:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjBHINC (ORCPT ); Wed, 8 Feb 2023 03:13:02 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE2233BD84; Wed, 8 Feb 2023 00:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675843980; x=1707379980; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=WrJD8z3vWyZ86FtjmOjknPhvHu/g/LFm6BYRlGdg7B8=; b=aHiPvMJIjBgZ8eUiDF4Un7g3UZnNAe8LsaoQ9HXaGR+zF1b8kbgwbIqy OwxbbJ2sWqDiZrt+ZoOTOWOagXFS7OFTQGl7Z4qMNnnSFRVtKq8PDqfkH VZ9e3n28eewwS6sSWFIViGunOtXbZ5iRRK7sjNgcjKQJYfe/ueBuHWk/h SgYP6J0StzdKPB2a9RZzurMVqhZEzdnETdjyK309SG4tPubMpA9R4XF4j 8D3XZDQ1i27etwwpxhE8krZHAyVo6RT1pIWOlw0BysOpbk+6dVM7CleVt Pi21gjPkdDcVspUOibWz/bBEpKyh1axl2IFBYfEi919QpK8vd4Hl3iiRo g==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="331872276" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="331872276" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 00:13:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="617124603" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="617124603" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP; 08 Feb 2023 00:13:00 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.16; Wed, 8 Feb 2023 00:12:59 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 8 Feb 2023 00:12:59 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Wed, 8 Feb 2023 00:12:59 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) 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.16; Wed, 8 Feb 2023 00:12:57 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rvxj27a1zM9TSmf6whts2p0Hanfy+tRxnLuLLd+c9PnDud58rU04sq8sp+UU8dVlBilmv9arDGzr4gHt/8i0GZiCYQQCZPtbrLtVFWcXdCZdH6MFJ6/CEs3WUa9NdgO+zOHOJAgPgb3tIX9wkZ6zhVgrfpLpPBIessnuqXhCasj1Df1UZzEOeQCbeAFGcl2q6hMcfy9gnuscyqOIhLBlhSfhodHTLOZCAMDEX9GTG62NwA2Q/NAYOxYngHBcJmNBudJPNfGWw4GGDJSc0kRIPzZHBapy3okEk2UWKYBc7cdQSJdw5cTXiIBkIAsJJ8ERgZF1vJ4PiOknIy3MvIiDQw== 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=WrJD8z3vWyZ86FtjmOjknPhvHu/g/LFm6BYRlGdg7B8=; b=gjvwyX+W1+q0WVsRWPyAC0AbCpKf0IG659eDW60Q1LeAgzQgqiMv6WntQCHktorocoUhSQHcJ6qrgOnFw+osBAZmS6QxuOuKAd8ApJ6WnUZkSAIr/+27LdLwLUbGIn7dSC/wmesr7QKE6jxjvAG3QVvERv8RWnBByUpWdnICoh9yPEpWzKYdT5wNH6Y+ZA+IbgovwHTPcOzBnr5OqlwlCbK6rMUVSiUStkcJeHv28VP7DbBTSlCLZPFWecSxuv8EdUoIYoBVOHPwFMYCYA25SZ/IRgyRVbm5ojLfFiy7FcbvHKHIRQMMkvZ1GyFwMGzdcKpTHyNHvZVvrPPsqWwp/g== 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 DS0PR11MB7529.namprd11.prod.outlook.com (2603:10b6:8:141::20) by PH0PR11MB7494.namprd11.prod.outlook.com (2603:10b6:510:283::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.36; Wed, 8 Feb 2023 08:12:56 +0000 Received: from DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::e1fa:abbe:2009:b0a3]) by DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::e1fa:abbe:2009:b0a3%3]) with mapi id 15.20.6064.034; Wed, 8 Feb 2023 08:12:55 +0000 From: "Liu, Yi L" To: Nicolin Chen , "jgg@nvidia.com" , "Tian, Kevin" , "joro@8bytes.org" , "will@kernel.org" , "robin.murphy@arm.com" , "alex.williamson@redhat.com" , "shuah@kernel.org" CC: "linux-kernel@vger.kernel.org" , "iommu@lists.linux.dev" , "kvm@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "baolu.lu@linux.intel.com" Subject: RE: [PATCH v2 08/10] iommufd/device: Use iommu_group_replace_domain() Thread-Topic: [PATCH v2 08/10] iommufd/device: Use iommu_group_replace_domain() Thread-Index: AQHZOzoWMUUVTAZYTEmJ999vMYX83q7Es4Xg Date: Wed, 8 Feb 2023 08:12:55 +0000 Message-ID: References: <4653f009c3dacae8ebf3a4865aaa944aa9c7cc7e.1675802050.git.nicolinc@nvidia.com> In-Reply-To: <4653f009c3dacae8ebf3a4865aaa944aa9c7cc7e.1675802050.git.nicolinc@nvidia.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: DS0PR11MB7529:EE_|PH0PR11MB7494:EE_ x-ms-office365-filtering-correlation-id: 941fec8e-f174-4eed-f916-08db09ac482c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: omvcrc9SczzA9C5+S43xkhq2O4r0JJBWZdEaCM420MS9QJpY67gbBd5S67GpjvfNjCaSyefuaf2lTVrAlyk4MgQpVfdimfL/qNi6BsjhPBN0t/7YDb4FpIEIEMWrkbTzKrl4Kwzxy7R+M6VpU5jZqVr+oHDMKutyIQTfS6Gu6mp5CWUKoglLHgrm7/b4WPxwGxcu2inxvDMNB3Ox+JMV+CvnQuThRAszawIgT8o2vGGPpjY4Dqs71PKCFHJtzp8uqx8OiQxkgaaHES1dhEoNKWzpfcloWCu+CKWMvtwKVKiEj+ML0MOm8uilgNWlWM7mbI9dGdxNc/WL/o0iYsTBPUFgms2jDWHYs1t+qXcQqGzJS4eJWVJhqBwTB6j8mWR43hsn2Vi4I0o3TcfJpDay7zs1jHA8dcWFYw+TfWLyt/68GA4GJi6Bad92hh5b2RepIvVvfaNfhPIIg8DJjX47KHtl2yVN7VX1N7bbsevSYm6ekw59J2i7r1AZqmj4AOq6xPWonxqYK+KE2eF26ooPs4aCeVrKqcSNWiDV9hFli3VQlS8hvra9/h8YeqAbecz6C/hdHVKKja227fUDda7g/04bT7xpzecV5wXVC4AZQtvzLekrnHm/dxA5ID+IuBOFsoPnPu1PN++YQzBv+Ds2qgYnbI/yCosgHi3RCm+ubD+DakFRN/oiVPKRb0KKOrx6tpJTgvSwiudTGTJhiVRKPQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB7529.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(346002)(136003)(376002)(39860400002)(366004)(396003)(451199018)(186003)(478600001)(9686003)(33656002)(86362001)(558084003)(5660300002)(8676002)(4326008)(26005)(2906002)(7416002)(52536014)(8936002)(55016003)(41300700001)(6506007)(64756008)(66556008)(66446008)(76116006)(66946007)(66476007)(38070700005)(71200400001)(122000001)(7696005)(38100700002)(82960400001)(316002)(110136005)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?tktyfoq7Q/Or7EidwppXyw4Yls/ZdlWgaQDHDVRmeYbqwV6u0FVhnJVFx6ze?= =?us-ascii?Q?P31a2zlqfUHuzhnK9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iwYv/c4?= =?us-ascii?Q?6wxtCjF5Yts+l48zinXSJJ14Gn7aeMS4RNHWi4Q9iAYtIz7mA4cl7/fyjD2m?= =?us-ascii?Q?L75nqgGYPR8Ez/9S2Y+uu8qaj8AsM3ti/ZOBYvJ5gXglMNTqQleYVy1NoAOk?= =?us-ascii?Q?4iBNiKbQyDr3p6ctdbbye7j74y29AK+ZiREiv+4Jj54lhHxJJ07GBrQ+/Hwz?= =?us-ascii?Q?jBkKe19BjUgzdZxmacJRlQp8ATARAfJXoyzHqCy5OKq+r9I1Zr6Fs2BUxXyZ?= =?us-ascii?Q?K9W1ToQ4mups4PQ52uDsCqm6FQMq1fDe/rtPGA//VLqUTan6MInbPZbZ2f9t?= =?us-ascii?Q?cxBcYusMgO6m5XjObnFz2pCK0m5AOQB19gmMcTBbMENFHKAqCdIa7STudj8r?= =?us-ascii?Q?yHfTZ11RDuLcrKTKMP8WcmPI3somAzUzsbsDrOxZTSmDszdFooyQFekug4zz?= =?us-ascii?Q?9lFmffZK6pUeega1jxr/kGs4fSwwKlcN9nEToZZQlrBGPHStZrgs7gcCuwmP?= =?us-ascii?Q?98cZAZcV5B/fH9n6dn3Do0gPeH0KD0yeY6yOjTkascgzKzWYfNrknxhDA9Ks?= =?us-ascii?Q?XGKHOGAIhnVQLLS3eik2jjJsGr7/Q6JdcloFmII2eLmkOsi9iDobxH79/CjN?= =?us-ascii?Q?0pc9HuPrihc4DJjj/bAHSawSQdEKkKaJt4tLPGuK?= 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: DS0PR11MB7529.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 941fec8e-f174-4eed-f916-08db09ac482c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2023 08:12:55.2399 (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: Tpz908NcrBGnJ9VLc3UKjmeJrCJ+Gv7jNsXY4i5nIWEavMxbrApN5nv+ffVoIyJguWK2THbrqA30/HgOlTLedg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7494 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Nicolin Chen > Sent: Wednesday, February 8, 2023 5:18 AM >=20 > +/** > + * __iommmufd_device_detach - Detach a device from idev->hwpt to Nit: s/_iommmufd/__iommufd Regards, Yi Liu