Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1686624rwi; Thu, 27 Oct 2022 20:11:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wapQMK9mCMTjSa4XHH65jRJkcgLxHwb5FIGqXio5aNz7RD3pCBgNA6o8CP9F4lmmzHFS+ X-Received: by 2002:a17:907:724d:b0:78d:acf4:4c57 with SMTP id ds13-20020a170907724d00b0078dacf44c57mr44763722ejc.516.1666926694796; Thu, 27 Oct 2022 20:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666926694; cv=pass; d=google.com; s=arc-20160816; b=mQwVONRIk2toXzzkbWOZbcoXY0dZM+64xOooOcLGm3A9L20DSkktLBaHGT6IQVVJs1 A2o8UQGyst9xuyF5TSabGNF/T9XJAxKAsru00mVwuQMQ+AhecrljGVDt9KeWxP+uSQ8L 1HzmYM9zSBBAeDEKXPLZlSPfjrmPLih5izTCLMyz/w8RVqCVZJG5fSxoHqxDAP8/DG0V +EPJTZAGZj6oi+SqxkhOx/k5jNuA1anI+SOTbpClFJm3Av/8zMRfdl4F0OlFSQP9cKkg acBGckQvaMPhlOd6MeTSe9BTi1w8sK8dZ6X31AYkUCNQARsNM2ObbCB7jfxKNH1rZ0mf qnCg== 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-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=WFE6Mz2OutfHW6prjAikDiPZ0y8p/1LX2UQxgyOYZxY=; b=IyskrymQjLyc5Os4V+ICn4CIZlie5fPGQiORXsAuK9t16amP9zOCPwgMNPpEsYoCal 0yaLGynZYDhB+28CXmvL4Gq9dkBbiPl8hs5BVb8PYKVu01crx5enwTzndEIq5gafL9To vLqZVc/kVUMZ5/TMN7JOXLb5gw3yHdFM2CAPVgP1n2O79MhGPVCE5fNVJl5TIIG8HWbN wazmVGGO9OoJwsHQa/i36TLf5WWHUS0K9e7u3x3D+C975T6b/ZeNlzeGAiYgfMKZwHDM JCePGfG/TlFmmxjoaMZ87Ibmu290lUJHrDhP1ini7x8wlKboNpmTp5zPHEDh/8ELOmal olBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mSMHhdn4; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a05640211cf00b0045d5e3c7f44si3854954edw.180.2022.10.27.20.11.09; Thu, 27 Oct 2022 20:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mSMHhdn4; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236068AbiJ1CV4 (ORCPT + 99 others); Thu, 27 Oct 2022 22:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbiJ1CVy (ORCPT ); Thu, 27 Oct 2022 22:21:54 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7AA5AA0D; Thu, 27 Oct 2022 19:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666923713; x=1698459713; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=WFE6Mz2OutfHW6prjAikDiPZ0y8p/1LX2UQxgyOYZxY=; b=mSMHhdn4RnmgPXVPnGRthlA4SfoWYirjBhM9xVdHGmjdky2Dvdku3qQM koFddIDqw2+EbrKWe5pIbU/IwsoGoxWf4c7q95JI29CXZXbFMFl/tAihe 6q+UFj6RmbLZ+M1VR756Li2j7Jy08r6rIfnV5QRsMPWNd/O6q85tE8s+q 2m0N9ATZYANDt6USxUjsUutUW+ltg8wPFdmBa8xBmFmqi8pS+dzrswIr+ LBHrFch6nO+sKXbg3OtBv7dZu9ie61bOxeEYVgO9pdKXm3l140aGcSS/F BwpzPy+2hc5LHAeAd4zxoQcsOEjxlhGTpYPQBRrOIcE3WGP44GRD9JunA w==; X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="288787178" X-IronPort-AV: E=Sophos;i="5.95,219,1661842800"; d="scan'208";a="288787178" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2022 19:21:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10513"; a="737930253" X-IronPort-AV: E=Sophos;i="5.95,219,1661842800"; d="scan'208";a="737930253" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP; 27 Oct 2022 19:21:53 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 27 Oct 2022 19:21:52 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 27 Oct 2022 19:21:52 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 27 Oct 2022 19:21:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQTEEnyx1sxp06YlFrUyy9ufOo3L9/z5+WIb5SGAhDhH/gX2emcS44sWz97tIJwHSPxYBbPQfhztOpbpQCdunNc+x6n/4Mrk8kuK4fs5nQzuDjCXTik4rNMYPh3Mz0WUNLAHe/cpY5CVbVgqhmh8ckMH31frzLYS0hs/6co7ZXZm1eCo2DQ654eKoLKiT+YWcTVshYR5mcvli/F4ZDMFtm8twFy1tkecLDAoCGZBPSWOPap5ktvc5xOrSUBPhZgjNV6SSpREVDABUOhr8XXVk9YIBl5pTKiDFWqrZSkYI9ffZ22qp1j8xouuF63hPGlGMTpPKb8ntwRH3cOK9+ozBA== 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=WFE6Mz2OutfHW6prjAikDiPZ0y8p/1LX2UQxgyOYZxY=; b=cqxT+gUqDPTMcUCN0H27ORJzGYEw5CTQwOYpaua+j21JNkeOSYAfOZbFDoiQWcl0cRkCGLfTuNz+1PlqqGJGutxSOOYakX1jX1Gk4ifPgd05vq9dbGgkG2nB4YyUVpN9nJUir1HmF4mnrHmYNq4UL1d6VVqkY0TzZlgCvu8qQKdQKnq4QjeYOGn2+do9L8NDw133pHl1iuafWOZOa52QTTlk6JxhJQJZhnzcF5rOmCSBZ+n0nPTc4BcA61tdO6ZeLzTqla+1js6adydXO0D6D2Tu+4fX8WII991oHivUH03jz3nlP8Kz9eDeXFSZ6t/FDKwSrI46N8B8jwnYmhX8jg== 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 BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by CY5PR11MB6306.namprd11.prod.outlook.com (2603:10b6:930:22::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.28; Fri, 28 Oct 2022 02:21:49 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::6eb:99bf:5c45:a94b]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::6eb:99bf:5c45:a94b%3]) with mapi id 15.20.5746.021; Fri, 28 Oct 2022 02:21:49 +0000 From: "Huang, Kai" To: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ak@linux.intel.com" CC: "Hansen, Dave" , "Luck, Tony" , "bagasdotme@gmail.com" , "Wysocki, Rafael J" , "kirill.shutemov@linux.intel.com" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Williams, Dan J" Subject: Re: [PATCH v6 12/21] x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions Thread-Topic: [PATCH v6 12/21] x86/virt/tdx: Add placeholder to construct TDMRs to cover all TDX memory regions Thread-Index: AQHY6Y2jpLGj6H1IZ0qLOAaWltkKyK4iXzmAgAC1uwA= Date: Fri, 28 Oct 2022 02:21:49 +0000 Message-ID: <83da61dcafc88c9c89f336d7387ecd9aa2857ab7.camel@intel.com> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.44.4 (3.44.4-2.fc36) 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: BL1PR11MB5978:EE_|CY5PR11MB6306:EE_ x-ms-office365-filtering-correlation-id: b19b4e82-b1fb-4eae-892d-08dab88b2b83 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: py+jASXrOfq8nMTQpb3soSKtcwfoQ8tMI59QS+mZaRE234CVJkinpa8IU0hJRdr05uotRGOmbjBrrfuSYkbvZGbSb7xedOdYEiMnA+2FcSW4t+C1dPIhWpzAzIKv4q2Iz0M/E8HcWiX2D1ByOUYuU9CBoOdXhB3P3bi8iDqJgbffmu0hCk0Rkn/PknLjJJ9S6YgtmEbZRCIWSvjQH5RHmAZcGqoy0UrMeyJ6zClxwGRS39NefRKDRQ7OXhsfRn2yhFW6X4wWPHhGY68EU2/tavPMcJklhqDIcBhF0rFrv4z5XolUMtM6TpibKfoi4s6fiKUDM1t4o7w74tjhxKpPP9d3MTIAvLVVoWfQuA80ssTxjp+IaRIt/2kkQ69BiXxbY16onJpTQt+jUd1dcvPsOQ7ujyW/dRFotEvuhDgm9vxCrwB4zHg2oAhB/gdNmri9MtF01R+e7MM+yatpwq5L7OVe/eqVKtC67582yPtoBU1qlkpjPmsCUjqXmG8olJjDOeeSBTwF4ADzscjf+TSBGgDQo/TFAGHGUHeB5wILujEMsiy2hC7yil293lGQUQ3kTVb4AyBkmcjfPmPCCVdx+j96pNqs3znxi3fZw6W2PJc9yw5IAP0Ad68f9OaKA4q19zvu2GNn20pmfFUWB2tCFNzxsObTY5IlN0kErWvahER4YXCsqWwpIatVjxmPRCllTrv7YSCirz81chETdOD4xb3gjYWB9KlZKLlsz2CUxC6viH9RA8bAd9cqtW+zXzc+eOcC1QZfxHficFt5m9Q2AA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR11MB5978.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(136003)(376002)(346002)(39860400002)(366004)(451199015)(82960400001)(36756003)(38100700002)(91956017)(76116006)(66446008)(66946007)(38070700005)(110136005)(66556008)(316002)(54906003)(66476007)(8676002)(64756008)(4326008)(122000001)(7416002)(6486002)(26005)(478600001)(41300700001)(86362001)(6506007)(6512007)(4001150100001)(2616005)(5660300002)(2906002)(186003)(8936002)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?U3JCc2w4TjBNRWlTTEszSUZ3MkdpS1NCdWlpUlpOMnlXenRaeDdINXJaUTI1?= =?utf-8?B?a3pPLytTdWhxd1dIM2VvR1lIWEhrSFJQeE0veEFRd05CbnNQcnlVOUVLOGFz?= =?utf-8?B?NXdoSDZKNkxvZjNrb08rek00ZGdEZEZLb01rTEhtSGFNWFZzY0RMZDhTWGVP?= =?utf-8?B?Skh1VFAyeGNhbUFiWVNiNys2bGtlTGVwdUwwMnBkK01KTDRSLzhBai9seENs?= =?utf-8?B?UklUUTFOVWIwR1NSUGswdjZJZXI1QXJwUHFHMmd3djNJN1ByWHo2RWEvWmlT?= =?utf-8?B?cnc0QzdiVko1eE1BSktFRmU1a3grYWdRbDU0MVJML2plUGdRL1BoVnhRTXNI?= =?utf-8?B?ZUNmMnljaGZSVnp0ZHA1NXA3L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?= Content-Type: text/plain; charset="utf-8" Content-ID: <8646A47E4C2D7242B082C90140F7300A@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b19b4e82-b1fb-4eae-892d-08dab88b2b83 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2022 02:21:49.5727 (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: C4ZmCZPZfwYGXwnkSf0sJvvRE8tJlY9FOWdpNA4aT5f/7Du1tbN0NI3+PEzEC3D8ynIZe4Q/FZ7+CglXNFCknQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6306 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 T24gVGh1LCAyMDIyLTEwLTI3IGF0IDA4OjMxIC0wNzAwLCBBbmRpIEtsZWVuIHdyb3RlOg0KPiA+ ICsvKiBDYWxjdWxhdGUgdGhlIGFjdHVhbCBURE1SX0lORk8gc2l6ZSAqLw0KPiA+ICtzdGF0aWMg aW5saW5lIGludCBjYWxfdGRtcl9zaXplKHZvaWQpDQo+ID4gK3sNCj4gPiArCWludCB0ZG1yX3N6 Ow0KPiA+ICsNCj4gPiArCS8qDQ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OX09OQ0UodGRtcl9zeiA8IDApKQ0KKyAg ICAgICAgICAgICAgIHJldHVybiAwOw0KKw0KICAgICAgICAvKg0KICAgICAgICAgKiBURFggcmVx dWlyZXMgZWFjaCBURE1SX0lORk8gdG8gYmUgNTEyLWJ5dGUgYWxpZ25lZC4gIEFsd2F5cw0KICAg ICAgICAgKiByb3VuZCB1cCBURE1SX0lORk8gc2l6ZSB0byB0aGUgNTEyLWJ5dGUgYm91bmRhcnku DQpAQCAtNjIzLDE5ICs2MzEsMjcgQEAgc3RhdGljIGlubGluZSBpbnQgY2FsX3RkbXJfc2l6ZSh2 b2lkKQ0KIA0KIHN0YXRpYyBzdHJ1Y3QgdGRtcl9pbmZvICphbGxvY190ZG1yX2FycmF5KGludCAq YXJyYXlfc3opDQogew0KKyAgICAgICBpbnQgc3o7DQorDQogICAgICAgIC8qDQogICAgICAgICAq IFREWCByZXF1aXJlcyBlYWNoIFRETVJfSU5GTyB0byBiZSA1MTItYnl0ZSBhbGlnbmVkLg0KICAg ICAgICAgKiBVc2UgYWxsb2NfcGFnZXNfZXhhY3QoKSB0byBhbGxvY2F0ZSBhbGwgVERNUnMgYXQg b25jZS4NCiAgICAgICAgICogRWFjaCBURE1SX0lORk8gd2lsbCBzdGlsbCBiZSA1MTItYnl0ZSBh bGlnbmVkIHNpbmNlDQogICAgICAgICAqIGNhbF90ZG1yX3NpemUoKSBhbHdheXMgcmV0dXJuIDUx Mi1ieXRlIGFsaWduZWQgc2l6ZS4NCiAgICAgICAgICovDQotICAgICAgICphcnJheV9zeiA9IGNh bF90ZG1yX3NpemUoKSAqIHRkeF9zeXNpbmZvLm1heF90ZG1yczsNCisgICAgICAgc3ogPSBjYWxf dGRtcl9zaXplKCkgKiB0ZHhfc3lzaW5mby5tYXhfdGRtcnM7DQorDQorICAgICAgIC8qIE92ZXJm bG93ICovDQorICAgICAgIGlmICghc3ogfHwgV0FSTl9PTl9PTkNFKHN6IDwgMCkpDQorICAgICAg ICAgICAgICAgcmV0d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