Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1688695rdh; Mon, 25 Sep 2023 23:46:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoTDlDwdEc+zyjWiEMQNIepXRBnBSOckUldbbJPLRG74ZktBggWvSGZD4YBa0nrF0cb+72 X-Received: by 2002:a05:6358:998f:b0:142:dfc2:a441 with SMTP id j15-20020a056358998f00b00142dfc2a441mr9187673rwb.8.1695710761811; Mon, 25 Sep 2023 23:46:01 -0700 (PDT) Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id by10-20020a056a02058a00b005775156c31esi14791932pgb.92.2023.09.25.23.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 23:46:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XTHDrg2O; arc=fail (DNS record missing); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 71F1F8094760; Mon, 25 Sep 2023 22:37:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233170AbjIZFg6 (ORCPT + 99 others); Tue, 26 Sep 2023 01:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjIZFg4 (ORCPT ); Tue, 26 Sep 2023 01:36:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64BA0F0; Mon, 25 Sep 2023 22:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695706608; x=1727242608; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=mpgmOSMEVw3AAW5AregGv9tcEN4qGrvjULGn6Hx1lCw=; b=XTHDrg2OpcINHknlhYp5HDiS7+n2oujf3Fp2GUgmA1BCofm4zvZ1H2+e pdJXE/Ve0dGGXgmMOTOFVlPmXjkBeYqojZl1Y4WQxOVeHZv1b0JML99nG c9PNLgVbg7k3oSQKynWN/DqAQNcB1XqUyi3T6v9tGnpHQHptTfTuEf8eA a0ZiX2BigzozpLXtWAVKnTuVVSK2+/PaUKqOryDNWnkCBMebwOgVT1UPm nO7nE27hR7Yju3wXDTsqoVVpIyWQHWSNC/vfuA3eZ/cBFdZhf7XJc8MwS kySTxcn241ZO9MozdfxNUiTdYWB61DSvJQgAVgAEfdCMqUEpzgDtIcZ+9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="445621621" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="445621621" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 22:36:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="818924523" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="818924523" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Sep 2023 22:36:23 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.32; Mon, 25 Sep 2023 22:36:23 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) 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.32; Mon, 25 Sep 2023 22:36:22 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.32 via Frontend Transport; Mon, 25 Sep 2023 22:36:22 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.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.32; Mon, 25 Sep 2023 22:36:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RzhvuL9f0sy9jBPagvFcv5d9Wo836SBpj9/zoYFzkYTnBazaByWA/R6OXA+6KsGfkk0ZOV0zgljrKs9z0erhsPlZImeiRodg0Hw+MkbWvW6Nux7jfYN05IBU4MoS5PYNdct9L8dlvfsZi5cQQOn3DbTUOikLI+0bjlZT5Vh/iafQnnP0LZ9rPTDFd8Dd5q8t+bxSQh4aPLId31Nq82AJ36PmkG/GO4OMjOs05elHzWSO4/6J3lMCWH+7tYt16q3x856rOKglTVGLxewg19da31MtcNfRDTCPNmTpWm+rkKf9rlAKaTC4dJZ9m6iQAevkIhWLJtE6cuX9do2HCM8U0w== 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=mpgmOSMEVw3AAW5AregGv9tcEN4qGrvjULGn6Hx1lCw=; b=QYwn3bnqzYSRMNdFKoCi3TNgCct/rn8SnAZvGZqlMZFDxfHe25SkSXqw23RQ+0FQBX6SXN4ePk2vidK8i0AvBiTEVgb/l16dA7Tl2CRoEaBwqQ6A28riQxhbPiZa3SQvm5N+kFqgpuRlMWeaFtL7XnW4VQrcJKQTMN1y96xqe7xBXFyl+g57MK78DaTlzwgtn+UXE5kd4v53CcmO6Y+8dwDxOKU9E9GHCAFC7n8LS3Iaquuhantq8e3xBJwVCYjUkBHk271n+c0Y7RIHwx3H4DbJvhrnXFpLD1+BpzHnfAux1KO7SD/50hFMaTuMmA8OC0Nk9fJgYiFwS/M9QjwsCA== 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 CY8PR11MB7339.namprd11.prod.outlook.com (2603:10b6:930:9f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.23; Tue, 26 Sep 2023 05:36:13 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1bfc:7af0:dc68:839d]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::1bfc:7af0:dc68:839d%4]) with mapi id 15.20.6813.017; Tue, 26 Sep 2023 05:36:13 +0000 From: "Tian, Kevin" To: Baolu Lu , "Liu, Yi L" , Jason Gunthorpe CC: "joro@8bytes.org" , "alex.williamson@redhat.com" , "robin.murphy@arm.com" , "cohuck@redhat.com" , "eric.auger@redhat.com" , "nicolinc@nvidia.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" , "Martins, Joao" Subject: RE: [PATCH 6/6] iommu/vt-d: Add domain_alloc_user op Thread-Topic: [PATCH 6/6] iommu/vt-d: Add domain_alloc_user op Thread-Index: AQHZ6ttUIY4d+/+Cm0ybhc12Lz+8RrAjMOqAgAB/mQCAAAFQAIAAzySAgAgf1MA= Date: Tue, 26 Sep 2023 05:36:13 +0000 Message-ID: References: <20230919092523.39286-1-yi.l.liu@intel.com> <20230919092523.39286-7-yi.l.liu@intel.com> <7aa8fd9e-e43d-db68-bdb6-fe4f891255ca@linux.intel.com> <20230920130522.GV13733@nvidia.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_|CY8PR11MB7339:EE_ x-ms-office365-filtering-correlation-id: a89da875-4903-4880-d777-08dbbe527f4a x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: P/p38zMVUrILlIj5VTe8CNuNHbT7Z7Teo06gSF3ZlIAcT4FPd+j/zdCO7/BPW6YJbfBsEuvsGWjjvrrUxDN5yz9ObIJFfZYO3VU3V/7Lo3k9NrfwF1Vnwzv7feW0hVefAdaLrCjXV1S8N+jGSpw2T+K6QKt+971iGjw/BMNg/J1p5mkX0zpeMu8y52uy6SroVboykba9E5+o+nxFssBbMPz+tufy8/UE4FZuWjhP5lz2Xjhh0n+1A3TCCYSv0pOgdAwSaSg3fF1GVfyktcXI3vIKMJ17XdEttY0DXiBAk037KnmU+HC8cOiF3jPBEgDSYHaD5daaK+z7kwPQ69z4+PM4w88U8KiVKaA45XSAinfhIiSDGsaiDnxV0vqdlYGSEJlZcMJ84cvC4NZ84jgVMxbt0Jd55gf6F/fmc4/DWUMNVeGi8f/og1mKONClChJHgQbrVpTRIone6PyffHJ/Dp42er6Zc4jRHdEOQhuhwVeMV1xF0c5tgwq2WdSBZuCLDFna34+2rnLukT/KXvEL5DD6H1PQVp2jdBOwKrJUDXQEe1j00OSXaTjOvL0cIYCOKyEg6g3VhLGZSTNtXJ+TSsEcDfJIlVUY7NG6VNRm/KICtceftzxzHVDylL1LCeT/ 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)(346002)(136003)(396003)(376002)(39860400002)(230922051799003)(451199024)(1800799009)(186009)(86362001)(38070700005)(8936002)(8676002)(38100700002)(52536014)(4326008)(5660300002)(64756008)(76116006)(66476007)(66556008)(54906003)(110136005)(41300700001)(66446008)(316002)(2906002)(7416002)(33656002)(66946007)(4744005)(478600001)(55016003)(122000001)(9686003)(82960400001)(26005)(7696005)(71200400001)(53546011)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bzFqS05RRllMQXJPQjBjMGRjRGpxK1BCdUlXZVMvTUs2Sk43akMycUdNdFIx?= =?utf-8?B?RHFUNlEzVGtRZng5dGZnY1hoTDBMRjFnOWZQUnJCWDZKUjV4bXdkTjA2eUJy?= =?utf-8?B?YWNjTDFRRSt3bzBqQ3M2ellFUzd1ZnkzeWszdVpjRkl5NzJWUjlFVXRuSy8w?= =?utf-8?B?S09DbnhwL3RXTTlaMHFCOU82Z3BDdUVQYnFrbDdoOE5HSkJxNm1kWDVadTZ5?= =?utf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M0Z0Z1VHA0?= =?utf-8?B?VWtqcktEMkIxZ3pKVkxTcVlTdVVrRUYvVEF3NjVlZmI5ZGZ3Wkt6Z0xBMVBm?= =?utf-8?Q?6AZtIYUYZJDa/vvTuCBizoSmb?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 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: a89da875-4903-4880-d777-08dbbe527f4a X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2023 05:36:13.4814 (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: u0FEn1Fzjg+YA8PndN3SH8xg2X4eFIOdsAQA5w6W6zvp0cSFECzb+Of8jBlIdEhFxNj2+hob99u8kienVSMq+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7339 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 22:37:03 -0700 (PDT) PiBGcm9tOiBCYW9sdSBMdSA8YmFvbHUubHVAbGludXguaW50ZWwuY29tPg0KPiBTZW50OiBUaHVy c2RheSwgU2VwdGVtYmVyIDIx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