Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6575396rwb; Tue, 22 Nov 2022 15:40:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DcKOwG+lJ0YkvPrcvKicFumUDeqWxer8e7fHLgDNcLLUo+zKx3tmaKC3187woVe/G8/8s X-Received: by 2002:a05:6402:2067:b0:46a:2378:445 with SMTP id bd7-20020a056402206700b0046a23780445mr1237525edb.221.1669160430429; Tue, 22 Nov 2022 15:40:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669160430; cv=pass; d=google.com; s=arc-20160816; b=UPk5Fm9Yk0/uAVsa6SkSXu4/829BxVi+AmTnBae6mES/ZxbsXJ7dUGYx1J16nJRayz yqKpeEyZa0h3xV0z3lLvO9AmgiHRB0Ym1YK/no081RGRH/Q8V4fyLzZ7xlvAoAE9ee2S bnBJwaaJvWa5REJSIUVCIirz0gdlrAKdUALJI198hJS3KgMZTWye3wQK5B79M4DtRLo5 5W151zDbrLV54c+JtBnmRO/z36q5lttx1Tq5mkU6pFCxrM1LXBUUz827abGa23eejkrF O42/Qm5XO4BHOdmgwXzyADmpRvQ2KNiH07yFKoaGLuLfShAb6PFt0DsRCpWZpEsgDTtC nDvw== 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=9f7eh1+Ahd6zcpt/zbir0AiJDK43uYaLDt1Q4RRSsz8=; b=HLGjcltRaqtvOL4OFtfzObD7hpCW7BN6lwM0jJ90P3DdRPj8ETg8fks9CoubGq/cBc 44GrUhBUghQCLx6xf2WU/zBMRSZV3Moru/63QLgoWrkaRH0eEtfZKCTMNtysvCk9OZHY HUMrFredA3PbNHzI5w/yQzsreFQvfgTG+NADJoC389Va1FrY9hLjxkFC+Iwwz+lLcck6 Resh6mHIY4S79BRyIC4q7t7t61aC1WFRaFovX8IHYr1uwLCAOpHUeTB0kjQ8Wrb7J+dj UCxS7d2xb7jgIGYWZM1gsm/n/YKZB6oNLhn4Z+NOB6b3l1HqgqwD4R0oL6kZjhNODn8w mAEw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k2PsdbEg; 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 qa44-20020a17090786ac00b0078d930212c0si13078899ejc.347.2022.11.22.15.40.08; Tue, 22 Nov 2022 15:40:30 -0800 (PST) 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=k2PsdbEg; 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 S234512AbiKVXVu (ORCPT + 90 others); Tue, 22 Nov 2022 18:21:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbiKVXVr (ORCPT ); Tue, 22 Nov 2022 18:21:47 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C49FEC67D3; Tue, 22 Nov 2022 15:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669159306; x=1700695306; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=9f7eh1+Ahd6zcpt/zbir0AiJDK43uYaLDt1Q4RRSsz8=; b=k2PsdbEg+vt3V/SuNh212BHUJAKBg/IEFJXwaPpLCucSmNPUdVicmXcZ IqrUnqc2SwKLxIw0Fa5/p6TCQf9FlJbNkPz9z9Y1aW64EtjwgLSn0zB4M RPf8fe4jBzbdhtCSYUpkhSf4aVo0okIkL1Ofm+mnrwCJMEqSzC7UVPF68 Vz9z+75GbxNKamf7U2fzsiN8+PejqL/QSOQGjYUzxRDMjOJ20n9upOu1D eUCno49nVUMTdSuiAywC5mvApIvMg68GZOvoXcVYhzqosWJinr5rI+63k gywg7vGXGcPNyZ+FYTHxTELA8bQ9bMnz71sVrJUPGM94nigpHsGFaDnnk g==; X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="301492193" X-IronPort-AV: E=Sophos;i="5.96,185,1665471600"; d="scan'208";a="301492193" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2022 15:21:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10539"; a="674512465" X-IronPort-AV: E=Sophos;i="5.96,185,1665471600"; d="scan'208";a="674512465" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga001.jf.intel.com with ESMTP; 22 Nov 2022 15:21:45 -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.2375.31; Tue, 22 Nov 2022 15:21:45 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) 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.2375.31; Tue, 22 Nov 2022 15:21:44 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.2375.31 via Frontend Transport; Tue, 22 Nov 2022 15:21:44 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.106) 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.2375.31; Tue, 22 Nov 2022 15:21:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d8HcewuUKIOvZiwyKoSYimjTLT34fYijm+ilZR91x8cSR0dHKWny2vpuV1clSL/17DUpTgktBEefFxcOaCVSuye2DAOmJNY1IQli9cmKoGOYE8xSyOzm67vYuoupuiMSq4pF4gtVhMAST0Ykzrck1JG8hxplUVN6i6UdO9qSb8chHvitiUkYsiZtDX6Vj0xqTE439oNZjE0KxS1yiFKE1NuGcHDlUg5KkNKhYouiv4XFWgO7Ka8RrkrAYZeJmqyWqks7ci8AaggUEjVOMMF8Y92Gyf8H9jbydu4yjXSVSOfM2XJzYz7fAjPcgJdosCeZMw57BBvu975oEArBVoWaww== 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=9f7eh1+Ahd6zcpt/zbir0AiJDK43uYaLDt1Q4RRSsz8=; b=Mfr7Z/FZiL3LVMAn1ga07h+4dOPc1GmtShVBjNQwEm3/Zla5RNA7j0tXsGIgYe9li4zJVN78JO/GAkWUKd+ZgHMQ7Jbjz7S5PEV0w8bmCeaIff2x59CeYQ0oHRKEEs8TV5Oq5FVCOuNp7LpYmUzRdfe8ekCw233Cm3RyVuYJ7Y1eTYJsJBG0RKUZaJCmO2DiU93M6Itbs0i37AfobREEtFZbDxA8P53Be28qynPdxfWk8AJae/hHzeXJo5/FBarQd1hPUi3me3qF5/YrIc3lyDMpZ9yBuxwRaVCZzzwbiQNFy801dwkzNHdo763x5pLcdjNszU5s8uoQ5L3WPj41/A== 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 SJ0PR11MB5631.namprd11.prod.outlook.com (2603:10b6:a03:3ae::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.9; Tue, 22 Nov 2022 23:21:41 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::2fb7:be18:a20d:9b6e]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::2fb7:be18:a20d:9b6e%8]) with mapi id 15.20.5834.015; Tue, 22 Nov 2022 23:21:41 +0000 From: "Huang, Kai" To: "kvm@vger.kernel.org" , "Hansen, Dave" , "linux-kernel@vger.kernel.org" CC: "Luck, Tony" , "bagasdotme@gmail.com" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "kirill.shutemov@linux.intel.com" , "Christopherson,, Sean" , "Chatre, Reinette" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "Yamahata, Isaku" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "peterz@infradead.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" Subject: Re: [PATCH v7 02/20] x86/virt/tdx: Detect TDX during kernel boot Thread-Topic: [PATCH v7 02/20] x86/virt/tdx: Detect TDX during kernel boot Thread-Index: AQHY/T294K8swb3sVUCgXbqBp7bt565KEzkAgAC9g4CAAFnPgIAAbVGA Date: Tue, 22 Nov 2022 23:21:41 +0000 Message-ID: References: <9db9599fba11490cebbe59cbb7c145e9c119ab0f.camel@intel.com> 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_|SJ0PR11MB5631:EE_ x-ms-office365-filtering-correlation-id: 142f665f-10da-4ad7-8cf5-08dacce04ff8 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: nwMpQQALSu5txtm3EHkTfkpKhVRxFYuGd6ulYMgELIjRChtBKnitOpuNCc14KiQn5kFtLhK3I8uYB0jlZvwBHCFd9kWJkJ2hwdTdVnUwnaiKufcjg4Zx5rCnD01liicupnXj8RMZa09N3RRuGhiPK1HXdijNSjOrX2nYxqaEW7m5DJMsSkDnrcTOv1Zr81InPUvWdIiYcHJnl67l5z08/iiw9rHXaNPE3ma2oauDQeAhxRu8GAZ93vT3yrJIgzNf3zr4xLiQ4MBp2FB0ENuBpnN8QwIs4Eej/RN0dUI2sTppN1u0LqS4Cfss/gPZj9YsoKiDa8Y7zmdwSnDqn/ZUpanaJ7rViIQQZ8Z1Q4z5uxyDCJMi2Tbqku4Zr/ST9pWnZ30vcqVRJMGsGKzj9Tpy0VTj4iSsmVlCR62JTAZGUWD+beYqvrrxXdN9TWe+eR0PFPZIpNSw80+Ec9g73nAxw5zCrcm11BSXY6Qs0YhFVVfWt1NvPbti1JE6uZ6w7wR/vtvuY/r7E9C4umm6A9XKaMWBL+XvRuCEqRcyXZGwetHh6waHrgbawDj6N/y69yXRNusVq/nhwXpk5iTk2cUG2WQgsdIu33CkeCpC9E+cRqJMyWEP7QL7+K47zhOMAP4mXUwGVipo6+r+fhOIeoH2xVbaMTpXRS5rGrU06Zma1dlDZXfT81CywIP62cqTy6iNfP5edBglQ904yzJ31nfJyg== 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)(346002)(366004)(396003)(376002)(39860400002)(136003)(451199015)(53546011)(316002)(54906003)(26005)(83380400001)(91956017)(6512007)(8936002)(82960400001)(86362001)(66946007)(76116006)(186003)(2616005)(8676002)(36756003)(7416002)(5660300002)(64756008)(66446008)(38100700002)(66556008)(41300700001)(4326008)(122000001)(4001150100001)(2906002)(66476007)(6486002)(66899015)(478600001)(38070700005)(110136005)(6506007)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NWNuV1ViVmJOSVJkQm9JQWgzckNnSGtoUWtMdVpIcDZZM0gvUzY1d2dTWlVy?= =?utf-8?B?UFF0NEVEK2FaWnRCZjJrOVBEUzM3ZHRsWnQzL1FoM1o1R1B3ZUkrb1RleVVS?= =?utf-8?B?TnJPOThONzEyT1d1KzYzY3N5VEZYS3JBQ1VidW9lRGN2eHZzYlRhRExDZ1FP?= =?utf-8?B?MmhUSUxNK1UzeWVLaVBGOTMxYmJQa2d3OVBCT2RaZzZBRDVRVmgveHdwaEk2?= =?utf-8?B?U1BKSGVuOGpROXJnbTVWMy9yZFdNNUU5T0ZlMjZMaVdsb3ExVEN0WStKUjdy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dSMmZhSit2K3FmZjJyd2xwb1c5?= =?utf-8?B?QVFLMHR1WVlaSFVLMlBUcytpeUFIK2xxZVR0c3lHaDJWYWFWWkZsSFVQNDRF?= =?utf-8?B?dXc9PQ==?= 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: 142f665f-10da-4ad7-8cf5-08dacce04ff8 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2022 23:21:41.2619 (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: JtV0Yyvq8JZSAGfb0drQ/j5DttCnrXxDFSRgZqgJidZgjBU1L9100uo891qLbHExVLlkgpubonKjpKsulua7tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5631 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,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=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 T24gVHVlLCAyMDIyLTExLTIyIGF0IDA4OjUwIC0wODAwLCBEYXZlIEhhbnNlbiB3cm90ZToNCj4g T24gMTEvMjIvMjIgMDM6MjgsIEh1YW5nLCBLYWkgd3JvdGU6DQo+ID4gPiA+ICsJLyoNCj4gPi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