Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2620689rwl; Mon, 27 Mar 2023 02:55:37 -0700 (PDT) X-Google-Smtp-Source: AKy350boTV+Ewc85XL5fn0d7DkcGD6YgrxyFeg0UMU2L17ssEy+yXKeFqu18DERkAz/ipFfWuuV2 X-Received: by 2002:a17:90a:35c:b0:237:401c:9bd5 with SMTP id 28-20020a17090a035c00b00237401c9bd5mr11337315pjf.46.1679910937338; Mon, 27 Mar 2023 02:55:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679910937; cv=pass; d=google.com; s=arc-20160816; b=upqQfpNPr+UPaY3Elro5KVrCRfcNbaLsU/77uU16v+gn0uXKkmycKzGsWM5gs/FR6m J5ghCw1sFmIhWu2kYOiGk5bQk4iteq1hbD9y8WQyop75gOL1i/tJuNnI+dE4KVuVxFJn iOTzlVZZurC/H+6Ri2j952VDHMLn6oHw7gNta0ntdXUVnPrck6KpTCUZWYtKBH1FWVMD uNcG75RJp124I1NHPFQ/EXbvOOEFSnTjzZWBInPj+ce8SVaClsTzphrRXKWrFHKsTwku zUr+z51cfLU9DfsNE9I07DcKclemhZx2ud7V3aDeTIJskqHsMq3oabQJitTNP1S01fqG uL0g== 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=hBbqvXxAdUb+6d31bwYAo4Hf/9b/SubgjYOMPQHm/eI=; b=lXrGrGYvXuYvAvcgwqPxzwAxCjg5M/WSYfVY47AhdUi1iQyTJzJt/Q+gvkGDciNO/p 1IV6kfCId/QWIf/ZIVAt5XkguI+aTR4/TI2gTpxjKU7yZbZfwGOBskcWS68+W+j/gQST 9nOFj3KlKKSHneYQEjPeH7Px7p0l1fuBJoBQjty2XsTPQTZiBDbNeV7YMIoW9Zzad5b0 2B36AGhR1bQblcNteNV1MMrE6QHCj8iT2vJfw36vJJ1RfnM7ufFaTfBw8hx9cEmrIkqk Xbzm8fmgxW8uSnVVEEXyU0ipF5YOM5EIfT4wE+lzAt4Ehu0Z4UJX5ceTFgi/ZsRRQEG8 +A8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=idLw++ex; 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 kt12-20020a170903088c00b001a1af4f6089si23522319plb.155.2023.03.27.02.55.26; Mon, 27 Mar 2023 02:55:37 -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=idLw++ex; 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 S233097AbjC0Jy4 (ORCPT + 99 others); Mon, 27 Mar 2023 05:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbjC0Jyy (ORCPT ); Mon, 27 Mar 2023 05:54:54 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DEC249EB; Mon, 27 Mar 2023 02:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679910892; x=1711446892; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=hBbqvXxAdUb+6d31bwYAo4Hf/9b/SubgjYOMPQHm/eI=; b=idLw++ex5bppFj8LGYPWfC7SR0AIQkyoNV+15R3uqmPDRcTzJqHedBVM UTNmzm2V0sUJa2rutpDtu/yGeCo3/KGNFuTa8qgJqRKednT8HPmP2fcwV jpp5aZ0i+cZH1OOVydgNDbThgkLHpspTWcYOqgxa6w/WsHr5BUeeIb9uJ O5wt/fnS2N1bWVZ+rxEKizG1U0rmTZpoU2UKe46oW+pzMp8vCigW4pGlR 4IZtADHEglkduN2bsQdoX1IbgmIJmb0SJz5DXL4yWir+GuVJCf7n5eCjF Btl/vfogexaDxF/vpitO1z9/+HPLMeViqKOIW3xwckHUK8NgDItxGDPHF A==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="367969198" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="367969198" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 02:54:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="1013049231" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="1013049231" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga005.fm.intel.com with ESMTP; 27 Mar 2023 02:54:46 -0700 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.21; Mon, 27 Mar 2023 02:54:46 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.21 via Frontend Transport; Mon, 27 Mar 2023 02:54:46 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.103) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Mon, 27 Mar 2023 02:54:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MQNitW4vkDGNcViAmcrJWYKJKVuoPgN9RfWy6tqSD2MFtViM3zEPilnY9WwY8fwy5X3423RsLH1dDFRB5RnCPf9UKlBg02SOBnBboOVkqL7T6tcmINJNU3nLsHYgUsSb+Fxor6GzrQnptzTEmEIxOQBGX6XnMGSM7YAqVMub6CyXR5HzFW8M/9t+jvGHOrY8awIFFXbusdpviwEqXx9zAjm0l2gfqg4EUHIO8RyBnV87pCppbwICT9Feko9Lfpep21wfKE4IonDsQDMVlkcsK+scrMuF+zToc0ney91iDTPIdqViQ0i+Td0XGRjOla3Lp3a+0qPDICUG6PA5n+Ds1g== 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=hBbqvXxAdUb+6d31bwYAo4Hf/9b/SubgjYOMPQHm/eI=; b=Lt9LKUR7FXwTCtHWFz4S8kaaq18p4lnZgjR1CJfrkKD9jSfWugK05c//Trr6Z+3IWIoRiaIz+NTGzXmiNDYQdofVYB6OnO53VUbRZJSC/ei1EDU1SGHGlk/a2+wwKC2o43KgEYheiFqA9pd3jXFkKOwRd5kTiQwi2eRSOiVj1mLsiFce4g+FdxodMgc1bZepJOWh7ohPACFi5xkLbFsHUkCwtmtUcvrakvKBBgXjYYz9YckkEaZ6+0Wwb31XTUe5Xio1OTwiU3dEyYLkaUbxhCHGI1pgp9Aoj1445Zr267JAWJc/DehI+uy2dWj7iT/mg4o3vtHKas4DzYMYhYG9GA== 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 PH7PR11MB7661.namprd11.prod.outlook.com (2603:10b6:510:27b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.30; Mon, 27 Mar 2023 09:54:41 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::f403:a0a2:e468:c1e9]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::f403:a0a2:e468:c1e9%6]) with mapi id 15.20.6178.038; Mon, 27 Mar 2023 09:54:40 +0000 From: "Huang, Kai" To: "isaku.yamahata@gmail.com" CC: "Christopherson,, Sean" , "Shahar, Sagi" , "linux-kernel@vger.kernel.org" , "Aktas, Erdem" , "dmatlack@google.com" , "kvm@vger.kernel.org" , "zhi.wang.linux@gmail.com" , "pbonzini@redhat.com" , "Yamahata, Isaku" Subject: Re: [PATCH v13 057/113] KVM: TDX: MTRR: implement get_mt_mask() for TDX Thread-Topic: [PATCH v13 057/113] KVM: TDX: MTRR: implement get_mt_mask() for TDX Thread-Index: AQHZVQw3kEskAU/Ee0qwjXZZkrxQv679PKiAgA2G2QCAA7atAA== Date: Mon, 27 Mar 2023 09:54:40 +0000 Message-ID: References: <20230325011200.GB214881@ls.amr.corp.intel.com> In-Reply-To: <20230325011200.GB214881@ls.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.46.4 (3.46.4-1.fc37) 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_|PH7PR11MB7661:EE_ x-ms-office365-filtering-correlation-id: e85359b4-6992-44a8-252a-08db2ea94883 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: 7vgXu/yjEapAizru/svsDe1361J50gcFPravRQ9Hp1Ro1HIv3XjZBHzrtM2uFA6F5syJ5pH1fK0Sdr72N9YUW7AK+MkHQ6sL6wiG8PTWfGbOi698uiWJVYgQ+Rn1yiDo9SxjL5iinIC7uwRQSKPZvmfqLlnATHhACnQ93yIdHhoq1XR+tozImjf5l/aiBWgtMUlnOkPAQb2RkrXGAblGL+XGzhbbXKtk8CgSFI+Ke+HelhWS9FF7SyDRMwVEIgbkL6D3EaZo1kJgiyp1l4m85jIEtI+lF2cTlTM8PD9xygBIqlT6ON3N2sOaDS5hEdL2QNRD4eg9qHMBmgWtB4TCkkvsntGGk6rfBqw1qz/8ddH1wcmHBjnd2EaK5isiNlV9UWYMjWknEbE5XbZ1pxvJZOS0dGdygddIWA29RowcDKIKohKuFwq89g+iqKsiBz5wemBKyHS/SUDqV+TNOoRpn315wuZdVDmcM4GtDF50VDbMnF1u+P72CaCtkdBAR+N20bTJ7j/5dZ1usJldbpXV3yUdw2+XnQCAiNih1ioZm21PTyNm/HOom2Zt55vLZ5pza1hzi9tC3abg8TfPNiRH6B8SNZRpny5T8NamgQ5fVgOPZbg+y2e13AIWlROnPu+p 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:(13230028)(346002)(396003)(39860400002)(366004)(136003)(376002)(451199021)(36756003)(86362001)(122000001)(38070700005)(6512007)(6506007)(26005)(83380400001)(2616005)(186003)(5660300002)(107886003)(8936002)(82960400001)(41300700001)(6486002)(71200400001)(6916009)(91956017)(76116006)(4326008)(54906003)(38100700002)(2906002)(66946007)(316002)(66556008)(8676002)(64756008)(66476007)(66446008)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cEVES0N4MGUxYVFMbm9jUGJZVEdiL3oyaytTa2dSWjRadFZjMkY2Umx2cFVK?= =?utf-8?B?Wk95dGs1MEJYR3B6aWNaaDdaWm5HSTlpWDA4TGg0MkRkbWRHUkZkcVpPSzV6?= =?utf-8?B?dURSNzQ4NXVObFNHVDFETk5QZzZsSVVtMHEramlSOHdXdXltZWo3b2xSRzVt?= =?utf-8?B?WitLd2E2VXVDQjBVOUZLWmFPWUp3RVRSeTgyNE1QVHZNcVhoRFoxanRDUHJS?= =?utf-8?B?QzhiZitYbWRGQ3hDNy92SWlBVVhKRkJGRXg5VXhVbVBlbjdRNkhMSENiMGht?= =?utf-8?B?cGNNb0RQZytocjFiMmVrdDZUMUxPKzZJUFlGcENITm8xY1hQL0lRVUxncTlI?= =?utf-8?B?WDNXSDhQS0VKK2tlWVlQTHFiendlbU9HK2hjRXJ0ZVF0V0ZtS240L3FrU3NO?= =?utf-8?B?ZzVZc0pBMUVFcDVpUmpnWks2L1phUjhWS3UzSEErelhmVnkxZE03TTJFYnRV?= =?utf-8?B?RUVJUU5JZXE4RERXZy9uTzdKWlBNY29NTmdSd2xMWG5xc09CakxoNWluenVX?= =?utf-8?B?anhVOVBsMnFCVk9MUlFqWDRQWW5iSXpLWTdkRlVYaFNWOTNhcHMvU3hKeFJm?= =?utf-8?B?bG1iYWNJVGhSVlNKT3RPcEtnUlRxTHZGQTgvZnBG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MxYVl2aU1BeGNDR2Mza0Z4c1RK?= =?utf-8?B?S2VmdWtUR2wzamw4dmpiVHBuZGV6MUNaOGRXUUZXczJtcXN4MmtEbmtoNXJ0?= =?utf-8?B?Q29lLzBYMjdySG9rQjF1VDg2am5vQlFjVTkwdHBBYjdMR1ZMdHlNK2dRYmxh?= =?utf-8?B?Z3AyUjJLcjZ4dTZaLzJ6blJYSGo2ZEtPdlNkc2Q4ZURObGVwV3QvaGh3anhJ?= =?utf-8?B?cXhHb09vNStLZFczOTFqazdwaHlvakRMcndKWXNkNE5YblFKaldwSVFCSlp2?= =?utf-8?B?b3RURFRJN3gxUnk4cEFiTUQ4SUJCemM2OFF5R1JZR05DT2FrS2ovQ0ZFNmVw?= =?utf-8?B?bDVDc25WZjVxN3BlRVFxMzJzbWtraGVNd1JLRTVIVHdrWE5nbTY5RCs4eHhM?= =?utf-8?B?VG9LbE5POFlHOVAzS0M2MjB1eFIzekEwWGk3ekUzck1mckFDKzBIVGpwOW1y?= =?utf-8?B?SEhWZGlqOWxiekplcmJnU0ptRVlTSTQyMm8vKytFRWZNYytWd1gwM0xKdHZI?= =?utf-8?B?dWZDeGJwT2F6b3hhQUxmZndGUFNibWR1TkcxNithM3NRdGFvZjVuSUFUZ3Fo?= =?utf-8?Q?5T/T5ykgT6Iaz4Mk7wbr0UYRt?= Content-Type: text/plain; charset="utf-8" Content-ID: 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: e85359b4-6992-44a8-252a-08db2ea94883 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2023 09:54:40.3493 (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: QacpCHV6fF1xJvCoD9ms2W+SMxaD0OHQYSfshA9p36uJate2XVHb6L+omejFo/NEXrEcYoeNAuuvZAtaoAFa6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7661 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 T24gRnJpLCAyMDIzLTAzLTI0IGF0IDE4OjEyIC0wNzAwLCBJc2FrdSBZYW1haGF0YSB3cm90ZToN Cj4gT24gVGh1LCBNYXIgMTYsIDIwMjMgYXQgMTA6Mzg6MDJBTSArMDAwMCwNCj4gIkh1YW5nLCBL YWkiIDxrYWkuaHVhbmdAaW50ZWwuY29tPiB3cm90ZToNCj4gDQo+ID4gT24gU3VuLCAyMDIzLTAz LTEyIGF0IDEwOjU2IC0wNzAwLCBpc2FrdS55YW1haGF0YUBpbnRlbC5jb20gd3JvdGU6DQo+ID4g PiBGcm9tOiBJc2FrdSBZYW1haGF0YSA8aXNha3UueWFtYWhhdGFAaW50ZWwuY29tPg0KPiA+ID4g DQo+ID4gPiBCZWNhdXNlIFREWCB2aXJ0dWFsaXplIGNwdWlkWzB4MV0uRURYW01UUlI6IGJpdCAx Ml0gdG8gZml4ZWQgMSwgZ3Vlc3QgVEQNCj4gPiA+IHRoaW5rcyBNVFJSIGlzIHN1cHBvcnRlZC4g IEFsdGhvdWdoIFREWCBzdXBwb3J0cyBvbmx5IFdCIGZvciBwcml2YXRlIEdQQSwNCj4gPiA+IGl0 J3MgZGVzaXJ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