Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EF51C6FD1D for ; Wed, 15 Mar 2023 09:48:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbjCOJsY (ORCPT ); Wed, 15 Mar 2023 05:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230455AbjCOJrx (ORCPT ); Wed, 15 Mar 2023 05:47:53 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C7725E37; Wed, 15 Mar 2023 02:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678873617; x=1710409617; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=Cwl0mY8WmILENga07vjabl8btFhUU/xjyMN13sZklWg=; b=kgTTtM3eLsVYxWQGUJhWakk3fFYKeVpQaK5Wlg3BqQnSsoO2D3SqDLt8 I1G94G2yeVN9LnJg7cxBVxETSLVU8uopnt8Dn9ceUjMXEz9M9lbh4j9Nt p6hpEQ1XYKyRJS3u/a9q5GZKJ7O0NNbOQ7IlWQjecoLlmmjLwbNVn6/1U QgYLTpNr6aG1tfcMUgduBl8bJmAAqP6PdPztqUwIICudSclooXBpQ13tL GO0Uokrm9SufOLvkoe0mOGcditRU1bX+hIp1ihKhfd2puVznhJ1pF9I/k zYgytdp4lgYk4QCqcH1vXVNsAv6yBk7h6Kf7O8RM4a3YDicSgG1PXjsoG g==; X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="339199999" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="339199999" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2023 02:46:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10649"; a="672672567" X-IronPort-AV: E=Sophos;i="5.98,262,1673942400"; d="scan'208";a="672672567" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 15 Mar 2023 02:46:03 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) 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.2507.21; Wed, 15 Mar 2023 02:46:03 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2507.21 via Frontend Transport; Wed, 15 Mar 2023 02:46:03 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Wed, 15 Mar 2023 02:46:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cdb90H1ewaARJEApsh0j8m2iq1Xdo+RCng5leTHkJS1KcTuRkVSR80x/Aiycd04F+SklJRJ+7HOCQyMX1PpS3s6To1X28Py8chtUuA5d0TKmieSAbk/SuAeMZKoqujyvhFINcyykyQ/jp2GMd5QPsUCDvtf+Jb8zTkxk8ygS1x5o5hJACGbYsBw9jhrLje/QyGJhJDx7d+jNA1ZzB6qGxzgGpHPIur7Vtmhno+/85TLKOJeCb9IuXPnBJGilu/IPMjOdWxB/L96IwV0N/AgNMD2ba7iOfUQdpVuIBRePVfs/L/afs8BHHeTA26ASQDAGP1F6EhGcAP5yieR6wShzIg== 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=Cwl0mY8WmILENga07vjabl8btFhUU/xjyMN13sZklWg=; b=E8p45UjKCGf12G+ZVCZr3AnTbo+RG8aapDBOZQlIhpmvuyHHdHBqBVZ5esu6UEz82MrgdZuKQJw2IVAzRp4Neiya0ohpnVfX2qt2ZhVx+IgnV6FAf1luh+WPE3SiDvkH5HaTZ9sJthjgpvHQ7fyIHNhgwREgf/0QhwmZf7KNhb26R3hUVflbcBl0c/lkdBRdcDBpgPj9BGUWHZP3eUUvNhQ2EzFEVwdUrtyfNMy2+XLk+GLdyKCln5y35fot4rhsaDM9hwvHkD5XL2t4ngEguZCR9ZxyB3Onj33M8YqTLDN+ninFOnCmCa/fNTEB9xEO3fCOETmsUCh76DCmQe6PXw== 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 CO1PR11MB5186.namprd11.prod.outlook.com (2603:10b6:303:9b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.29; Wed, 15 Mar 2023 09:46:00 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::f403:a0a2:e468:c1e9]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::f403:a0a2:e468:c1e9%5]) with mapi id 15.20.6178.024; Wed, 15 Mar 2023 09:46:00 +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 003/113] KVM: TDX: Initialize the TDX module when loading the KVM intel kernel module Thread-Topic: [PATCH v13 003/113] KVM: TDX: Initialize the TDX module when loading the KVM intel kernel module Thread-Index: AQHZVQwsPOGReWj5Uka2uRq42SaKMa75keeAgAHjHYCAACbFgA== Date: Wed, 15 Mar 2023 09:46:00 +0000 Message-ID: <8ee89a1376babf0a5dbc2feb614890b7e2ccf2f8.camel@intel.com> References: <44f7fe9f235e29f2193eaac5890a4dede22c324c.1678643052.git.isaku.yamahata@intel.com> <20ebae70fd625f8a0fe87f98c25613a2d4dc5792.camel@intel.com> <20230315072711.GF3922605@ls.amr.corp.intel.com> In-Reply-To: <20230315072711.GF3922605@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_|CO1PR11MB5186:EE_ x-ms-office365-filtering-correlation-id: 57739521-b8d2-4b7f-7549-08db253a157b 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: cyPlhdYynoqdXvW8+NsrPuDqXuU/73iaCF/yAoBxd88SaLpoVq4o61ThVuiedi0Nrce8DAkJC78c0/xkmkOusJ8PeNAwDRo9ZJnxl9sYvXCbmw6vDcmatZNo28v7T6b5fcZsUisHOPXXcHgiOd8YSY9wR1s6WYQsuxREJ4t/axUlgHs/joirg0L4r2UHmN3s8RYIK/3B3kbHRIGQY9LIwUi7Z+WTEQfqXnV47UHrCGOcuqbw4c8hRltxI5OB5/iJfL/X0RRHpoKXbswDIGxJ/IL9KKagKtucCG6tRSXyRlmrPHpYKw/gMRv+rkWK9ueQdOsfCh0FGy8eVnHYC7MsRol6uI98OLxle6iwiDRho85+yV5tnT3EaJZHoKzL/6UB25QIOrPHa61GIlaml79eCbcABgF8nJOBID/G0xoO5f5p8bmjcZCf+458CZN/QbxekceVZsEct7LrJ42/e1hhqGAXtMX3PIVvf0JUPi0sHEm0UsddYRQooQDABhtjL62QkQnTxBItvjTRz33M/E9nbvjo4nSKxy2Op46cDKiIuYB3zPTzR/RR7p8VaRK00OANcw8SaVbVTL6A5iPQ6sOtPjwjHpLvAg583ttN+uPAoKC43UnmMcYdjByDrz8ZIMeRzrw4OAVdn0lredwLp/p/6S0D+t3pHrVPWelgycelFwYeoXt7Brg45Asovou6fkBactik6il96tS0Vl9H4Dq9jg== 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:(13230025)(39860400002)(396003)(346002)(376002)(136003)(366004)(451199018)(4326008)(8676002)(66556008)(66476007)(66946007)(76116006)(6916009)(41300700001)(91956017)(5660300002)(8936002)(64756008)(66446008)(316002)(38100700002)(122000001)(54906003)(82960400001)(38070700005)(83380400001)(478600001)(6486002)(186003)(71200400001)(26005)(36756003)(86362001)(2616005)(107886003)(2906002)(6512007)(6506007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?NGFUTHAyREpMRWFjV044REVEdUg3aW5XWkxvTm9TN3RBWUdaNXpkK21VSSth?= =?utf-8?B?eVcwbFUrK0h0bFBBQWtBY0xRRjJ3ME96N08zRVpNa1U4N3NSeU82bC9ubjNw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1A1Q2RxS1N5VkNNOCthUlZ0WkE0emFXc0FaNEtj?= =?utf-8?B?a29aYy8zU2ZMeEJON3IzRnAxYzRtcGVBbWNOTkgvM0k2VTV3cWpncU5ZVzhS?= =?utf-8?B?T2tNNWJKbXA5L01Rd2JVT2JLQ0hCMGx1NmpLU0psTjVxS1FCNm9zVURsc1dC?= =?utf-8?B?YmwxcHc1UWJFaVUwYjFMWWVrcGhhck82VlpLc1l6eGdTR2Q3M1ZqVW80QlhY?= =?utf-8?B?UW5SdDJpSVdJQjcxR2VYNGVsNkRwZFhOZDBNV0svNnpFTDVheUpLQUpnbGVK?= =?utf-8?B?SHc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <98454FF1A2BE1349ABA6B8CE11507F21@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: 57739521-b8d2-4b7f-7549-08db253a157b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2023 09:46:00.1644 (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: YjjPAggOIhik0Er0a8LdZYFyHM5x5gjUG044TCFZFCpj3vym3wZMbkQLj9Tn7tNJJX6DcYYKrGFehy59uFCErA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5186 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+ID4gDQo+ID4gSSB0aGluayB5b3Ugc2hvdWxkIHVzZSBoYXJkd2FyZV9lbmFibGVfYWxsKCks IGFuZCBqdXN0IGRvIHNvbWV0aGluZyBzaW1pbGFyIHRvDQo+ID4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