Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4024539rwb; Mon, 21 Nov 2022 02:46:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf40cvqiB5ZBL9QW4ni5XqAqqhksOXXu1d3kfEfnHtTvATytM9cZvtlnvWMKLK/N8Q9XEU7+ X-Received: by 2002:a17:906:3549:b0:7aa:ffd0:cbec with SMTP id s9-20020a170906354900b007aaffd0cbecmr14832069eja.758.1669027609370; Mon, 21 Nov 2022 02:46:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669027609; cv=pass; d=google.com; s=arc-20160816; b=KDp/pRb2ELKV2qJQvkC2jQZaUQ4oKe07Z63ltbkeXizIi4cb6WOlSJCO2JDggqly+3 /I9Ko7Ky7YFA+SQi4v9heqnKQldxNPwwMuBXYsr8kNWgQ8VbT6B5UM71brBhJMf3E2p4 3ScZHVXlK0Rrxw2+Xq/NcSSzZ3B5RgGeBoW/KKpZGtkwsQHWSh23nFZKLCLFmw1u2eNN 33mPZLZ2Wb0zTquMJaMGsyeC23spFnV7Zi9tGCvCPBt0Aujzr3hILGyIld9b48d4Tj2X NPWlNvGY4mBPDbFzVjZQ5/joViy6DoPxFgKdR33fcSJrSQPrKAqaew8PoTcnwQ2WY+sI 3Gpg== 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=lijQCV2JmROsTcKLzR4mJ3MmhEu/5zY31cx3jJJj2e0=; b=O822ifkpqux5ROdn2TWsFvrUQMdKdjye2og/l94aWzvYChd5XBaVyed1TIpaO8/9km Ekx90tRAmOvTVZWH8BC5rO3bu0lPhlknwZqW4+iyKirNp/z8IYTz9AB1cPSENBv9wRjp 9SROt/le/VrgWmFk2nU3RxtEXJspv3qUkb7CtsUQMdfIn0MGaYibtPWvl8+RSzVSBvQk XdG5sNJs4h6oIJs0A7gel0lVZxOwrY92WDEyCovCYv38ju0Q5axJYTvux2QbT/kBiLvJ A2pdAxzb7Vxd54og6pIk1HXNgtpR2k9jhRjbCalgW0tHddIx92muQF6F+IXjsx7BZb4H cpig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TRuAF5xi; 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 hr19-20020a1709073f9300b00781c9c3b6f5si9834564ejc.474.2022.11.21.02.46.24; Mon, 21 Nov 2022 02:46:49 -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=TRuAF5xi; 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 S229817AbiKUJhX (ORCPT + 91 others); Mon, 21 Nov 2022 04:37:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiKUJhU (ORCPT ); Mon, 21 Nov 2022 04:37:20 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 243D978198; Mon, 21 Nov 2022 01:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669023439; x=1700559439; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=lijQCV2JmROsTcKLzR4mJ3MmhEu/5zY31cx3jJJj2e0=; b=TRuAF5xio85jY69WT9wj7bdPy4rePo+9nKdNJtCMyn2LnqYXt+T4CGgt w2ogr9ciOXY3Nz3BbolT5IzQ0ktK85S1XYxBbicWlWiT2yzjCw+xh/ngC QB1UMj0+ho1jdLzz7dg63wDEaXFL56uUICFlp8RvyugGpKpdKvR2iAkIK rRRqqujqmFIKkJiLf7csh0UgXpqZBRoweJGzyWcJwWq2ZN/8TD3AsogGf gNYvaJttLK/ebWn340cggfSe4/zkJKnt4Q1AuyfNg+o/GjoI0JXUeMov0 VjNfA8+4mabnHKmfwbhKRRRHaPSQcF5Oiel7Nw4BGkFZz9SP+nylroNum g==; X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="313545841" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="313545841" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 01:37:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10537"; a="591706698" X-IronPort-AV: E=Sophos;i="5.96,180,1665471600"; d="scan'208";a="591706698" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 21 Nov 2022 01:37:18 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 01:37:17 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 21 Nov 2022 01:37:17 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 21 Nov 2022 01:37:17 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) 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; Mon, 21 Nov 2022 01:37:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YRRLWD3LRdyrRuqECGWtXqpZziR15s8UYqq/67bwYDUG5f3D09PJS/DyOXanRFjNYlpKAQjYVhH3l4qxnXhZ70TZWpjZXSxKhIl77mDLVJrsKelKeoI1V8JjTswATrtWA6vMJVddNyxx1gnodNjzwnl2P8ivPjPzdYgyVkCkzK/TsZMQMwygNNKsAPIaNsGMbv2ickhEp/17uOcHW7L6bU/Z7CfRnYz17Cw7Q/cZi9CPEUQ22B3z5ATbzTrILNKeZaEjX8LeNSpCUMso+mDsIOgNUQbyOJKYH7fpPla83qOb9stkrY3qOPqxgO7xdkNVccdopYXkVL5tM1SYr2bKeg== 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=lijQCV2JmROsTcKLzR4mJ3MmhEu/5zY31cx3jJJj2e0=; b=CppTHLvDrmhEC5pTkYMO/mCUPriQnDMBqfQP0xq8j10dotVVI4NX4seBYogLbZU8vf08q8jnVVjwJ96ojzfn4YZB9CwTE4j/LGjFvhlimI8RvWM8OSUOqwbJM7HV4nHSL1DsZWg7Qt0TqwHwEarSH/yaYZnFX1noprXW9Yr0m+LqJpL5OWIodIJh+3hWxL77GdOLD4U8BVM64zpMZduQdutHD3YRycF10oWREPA7yLNz2Cp/i9GwE57l35ahTtNqNeNnCC7hY3cSuAhxt+c1lVAHdht/Su3YOnfcv+9Bq1R+MSFaOM861YWVr8E9KssBFqVl6Cm5C5r0TnYW9sEy/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 BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by SJ0PR11MB4879.namprd11.prod.outlook.com (2603:10b6:a03:2da::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Mon, 21 Nov 2022 09:37:14 +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; Mon, 21 Nov 2022 09:37:14 +0000 From: "Huang, Kai" To: "sathyanarayanan.kuppuswamy@linux.intel.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Hansen, Dave" , "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" , "peterz@infradead.org" , "Shahar, Sagi" , "imammedo@redhat.com" , "Gao, Chao" , "Brown, Len" , "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/T294K8swb3sVUCgXbqBp7bt565IskoAgABs5YA= Date: Mon, 21 Nov 2022 09:37:14 +0000 Message-ID: <827adb3d1610f43ce71b1491db8c680dbe095035.camel@intel.com> References: <3e4644e4-d939-7f15-02e1-a6be1ed7f932@linux.intel.com> In-Reply-To: <3e4644e4-d939-7f15-02e1-a6be1ed7f932@linux.intel.com> 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_|SJ0PR11MB4879:EE_ x-ms-office365-filtering-correlation-id: af95307b-218e-45a9-b81b-08dacba3f925 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: cDx50mhCgnnIjLfsHEF2jwBnuRHXgYT0GgJLa2tiCVnFq6MTlKieALEbldW9u4ZuO5jejnxm3cuT77oMFoaXsGt8Dw9btkxHXIseyH0LOPuws84CRqOfIQvUe/5p0sGIZ5tGgeEulnnroqJmApetwAiJPqwGeSw2b1aCUHE8puCz/WrsD7xtdn9263rjEEfa59HfED2l21U1Y1A4UoJYIlFHCAAtRaC5TChdCsHbZaaCpVTWIqy97VHRjbmFlI8IFqWZhSnXRw2qGzgPWGpzda3ZMAbbo8L/d/P9maEDJInxxZGhGBjjqltxMXQPuiplWBC3kUaeP9v1zcM9JweN3U/n+kQox7qUFzG6WGZt4rqXhToQ69aCSKXaSxXIFDizIaRbadD5/UBwK6zKZ4qzKoj6ost4tc/0baeiFY4+T256TZHEAKJsFj6y7oqpaPtBP9NjKwOI/dglOGyO3ubKiMizkcVTatbhnKevJr393VBWbrnFRHfPRXsuHzk08X0uQRF1+VepNSOo7Rfo8ymB1kT32TVM/aopDclQrzyCKf6C9S4S4b68sI9YBdP3Hwy7AucwIIl50phmHhomeETez6Qf0WO7jPb0ntmM2tAoW0kDxgxDlDydVIREH1Y0txCJ+QssenvBU8AAvetJTbHp2FRPPY70NEI7tB3duZ6wKY9T/WCW8gc3UDkGd1l7DNI6Q3edHH6Or4mIg4OWk/8GdYz/w+PhTa+i96/bMzuDVHo= 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)(136003)(366004)(396003)(376002)(39860400002)(346002)(451199015)(36756003)(38070700005)(86362001)(64756008)(76116006)(5660300002)(7416002)(2906002)(26005)(2616005)(186003)(6512007)(38100700002)(122000001)(83380400001)(82960400001)(91956017)(66556008)(54906003)(6486002)(71200400001)(8936002)(41300700001)(66446008)(110136005)(66476007)(66946007)(316002)(6506007)(478600001)(8676002)(4326008)(290074003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?QXBmNmdEdExCaHlmZnpjdThZNFdSODhrdVI5dUYvbUZ1WVUvbHREeGt4NktO?= =?utf-8?B?aWtidngvMGtNQ01pNzNmZHBIZXVGSlRpNzN4c2QrSnFPWHdDaW9Jb3dQZFRC?= =?utf-8?B?UzVRSUY3M09DR2NOR2ZuYkZsVUZ2NFhXeEpGZzNyYVVzd21ZdjRvNkRBRFU2?= =?utf-8?B?d3ZTSXRDWHZ1ZTU1NUR5RXkrekdxRVN4SXcxaEY1cklZa3FUNUZKTjExMW5J?= =?utf-8?B?Q0xwUnQ0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1?= =?utf-8?B?Yk5UeXZLZFpTS2wybnlIaFJXWDM2VmJZVS9WT0NpeXpQUXowdFR5dzhCS0hC?= =?utf-8?B?K3lwT25TS0xxajB5UE9BSjRPUEh2clhYbGpEU2xVRy9ITVdGRStvL04wWFZ3?= =?utf-8?B?Nnc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <0B9B81C63D23EF438B84325A27FB92B9@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: af95307b-218e-45a9-b81b-08dacba3f925 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2022 09:37:14.5816 (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: zbTgQK17g/cC2beiTZMUanrSpilcvd0EubOIJCP+Xd1gjKPiubf2Rmxc1QGKVets4Oo/PZN1idfn5ZzDc8l5hQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4879 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 DQo+ID4gK3N0YXRpYyB1MzIgdGR4X2tleWlkX3N0YXJ0IF9fcm9fYWZ0ZXJfaW5pdDsNCj4gPiAr c3RhdGljIHUzMiB0ZHh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