Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20453536rwd; Thu, 29 Jun 2023 02:28:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51U/Khl8aGjMX/+FYJDN1DCP7sEnmak1/k544nTVsfgCYirYwlB5dLgvnHCS/wAKIw36Zt X-Received: by 2002:a17:90a:2b88:b0:262:ceaa:1720 with SMTP id u8-20020a17090a2b8800b00262ceaa1720mr9382023pjd.5.1688030886986; Thu, 29 Jun 2023 02:28:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688030886; cv=pass; d=google.com; s=arc-20160816; b=UTm+UD6VSSl06894tI6skSpUk/Gug7sReoDpCDfEg9Rf5nAxgBDbkth/9Kq5+d0Ysn XiwDff39pNRSgRCcou9w06zYLanmhMiVjdXKr4TMSfd/biy53BzKeMQxD9NnX7GGbcYs zgn2Ji04BYu+lXumltOfizC9gPmt+oub/5Hfnq8BhE/huNTd9teDQSFEpS2lT0knDnTq V3qTlPSm+EIvSk4fYIOYHWEB+mRJT2PfZokVmtsZI8xXHztRofhp0Dz2yIgcLSiMZgX0 t1w4s63sKNLGQIFxBjSrTv2PXgduI6548VRa3hmsjtkGijgNaJGZTGALKR+aceX1Co55 g1jg== 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=fN7VyP4WgDZ45u5vM1LVbbGXx9v7jRA2y8/eTLWo6rc=; fh=dNN5n/7ZmJ5fkVFnMJtPA19/+0NpmpVoUeokYKVv8ss=; b=zRurklC49VkKMt7XVQhP/ahP886Wg2/HVTri/1ebg9zKBh6uUWpzlXOPYroVaJCR6l tSrNVjGq3N7yb0hSh/mRL4E+SUGgV7m3WAHZAwhUMu2m0Zn3z05gQpsqAmX4Hnu+y5ae KWQwDmDpJicpj560s0zulcCl1sHxLLE1CqUYQxJh0ycSDRah6ZiICXH2dNoRzPvFoon4 /4Cn49L1cfVfUZJWDs6W3DTTWc6H2loq5msvWVl1Jyai10TKABY0eq2XlTbabas4oKN8 B/a6kSu20Ioi2pT6NB/XnlVGiivYjEs0JzYqeP7BzHFrfqkrsywuRFPHG8Rpg/nYWG9h f5SQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MDxohnCD; 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 n8-20020a17090ade8800b00262fc8d4dfesi6491642pjv.108.2023.06.29.02.27.52; Thu, 29 Jun 2023 02:28:06 -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=MDxohnCD; 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 S232435AbjF2JP6 (ORCPT + 99 others); Thu, 29 Jun 2023 05:15:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbjF2JPs (ORCPT ); Thu, 29 Jun 2023 05:15:48 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDBB2122; Thu, 29 Jun 2023 02:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688030146; x=1719566146; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=fN7VyP4WgDZ45u5vM1LVbbGXx9v7jRA2y8/eTLWo6rc=; b=MDxohnCDUZPcLxBzhTRnMfmMAD1WwIrpyDn/goDjwXdGDaoZfRV/RB+A Ha5YneV1jC+6dGy3AQRISI147aza8ArBtFUz3qyCgjl2mHGN4FKmfUd/S AwPExXAyX8GsYRGM2Y4v4MiN9Llmu+5ijA8WUSeCAxRIwc0FwE8fFbtzF IqJnCtjIToHKbcIU9BsnXhBOnXM5zTj9jlssvnFSM5y8v183i1vNdSjUb r9viW5vlpo3BU5U9rAu+Ykx+m3atNkHzY1t7z4mYmRnRzAqSsfc8YiJHo p9YP2AKH5UAJg139H0zkWGQnYQF2tHPASf10NwLH4PDs/6tZfoM8TRJq8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="428081919" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="428081919" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 02:15:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="807238078" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="807238078" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by FMSMGA003.fm.intel.com with ESMTP; 29 Jun 2023 02:15:44 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 29 Jun 2023 02:15:44 -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.27 via Frontend Transport; Thu, 29 Jun 2023 02:15:44 -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.27; Thu, 29 Jun 2023 02:15:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mialnqw5S2XslyHsU8+oVai9VUvBiIHCjp49ZQviQwBUa/91kJwLkDYI4LQHSkrpcrDhAor/7VK4zbQWC8DBYkupUSjlh5y/s8WjUIJOPW63tZvSzDPOBYhtsoNtyqskgkPXbkY9sJ1JCfX8y4ESXXPJB3Dz2GDnoXy2E803NiRumPHg0uOxkzInPK/C+RWZbwe+KQuSmzofST2ptLlgA+xX4jxyCsltrLWjcYZubBnUIKy1gViDsMItmmpMSRXNP1Rrz2KDbGtRhhwYNgLaExQCGsCw4qoocWXzauk/DQQH/mAskKoaMNrLFp0HaETaj4qAZjclkZ3jNSRyQ4Gu+A== 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=fN7VyP4WgDZ45u5vM1LVbbGXx9v7jRA2y8/eTLWo6rc=; b=Ic7LmxglPUfS5dcEPs/r0aZbJfVbuqKnIVbxIoZigFfc1nYNnxEvO/1Qgtk29ezDrKKGfVuzOXSstox0OzBwR7hPXvTQFVojcAUbkeHKSzHben/QkubHi6ZRXUCPU1F23nF++Gaz7Z3ZzaFKqNrsRzymQnTIf1X6M2MOqVBQ9pEfufMvY087boxPCJWoYT024XktQsRgJqSk4o5/xxZ/PBrNp1p4xZgU+VZBbqDh32TplOd9aviMmgPkoCrWd0ZbN9RGb3kfWKrHqCKd5AyXKeIIvvhDHBMJwJ1pVCoJLLU5xIurza1w4K2TE5efqQwxmyO7UyNbID3FRgEXxTNDeA== 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 PH0PR11MB7543.namprd11.prod.outlook.com (2603:10b6:510:26c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24; Thu, 29 Jun 2023 09:15:40 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::19b7:466f:32ac:b764]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::19b7:466f:32ac:b764%3]) with mapi id 15.20.6521.026; Thu, 29 Jun 2023 09:15:39 +0000 From: "Huang, Kai" To: "peterz@infradead.org" CC: "kvm@vger.kernel.org" , "Raj, Ashok" , "Hansen, Dave" , "david@redhat.com" , "bagasdotme@gmail.com" , "Luck, Tony" , "ak@linux.intel.com" , "Wysocki, Rafael J" , "linux-kernel@vger.kernel.org" , "Christopherson,, Sean" , "mingo@redhat.com" , "pbonzini@redhat.com" , "linux-mm@kvack.org" , "tglx@linutronix.de" , "kirill.shutemov@linux.intel.com" , "Chatre, Reinette" , "Yamahata, Isaku" , "nik.borisov@suse.com" , "hpa@zytor.com" , "Shahar, Sagi" , "imammedo@redhat.com" , "bp@alien8.de" , "Gao, Chao" , "Brown, Len" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "Huang, Ying" , "Williams, Dan J" , "x86@kernel.org" Subject: Re: [PATCH v12 08/22] x86/virt/tdx: Get information about TDX module and TDX-capable memory Thread-Topic: [PATCH v12 08/22] x86/virt/tdx: Get information about TDX module and TDX-capable memory Thread-Index: AQHZqDWtVIac1znuLUmerNJjHJZ1la+gRBWAgAFABgA= Date: Thu, 29 Jun 2023 09:15:39 +0000 Message-ID: References: <20230628141011.GG2438817@hirez.programming.kicks-ass.net> In-Reply-To: <20230628141011.GG2438817@hirez.programming.kicks-ass.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.48.2 (3.48.2-1.fc38) 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_|PH0PR11MB7543:EE_ x-ms-office365-filtering-correlation-id: ccc80ba2-debd-4186-d294-08db78816810 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: GsqTHlAnfyoS0NsjQYhsK2z+B5FqIKuGp0G9ed5XvwSLUTPMVLa0RY/iKVJ3ClVLWv90nI+wPyhaqUrQeUezbE3HFE0GBzG2n/8sGwHAJELtEvS3hSKHdMhFvr6bT7164sMCbH+O3DfGj3jRCuegs4NsuJW1C1d3phK/r4qi4SnR7II507xyKlDwtocNFc5iSc/BGYXX+1xKZ3tEAPjPuPc0F7NNyqijtk3FG3JyAG2XofTN4ybgzECGXQ+j9i0qDDYH5uyuLlLVrNJpV84esgau2o5pSXFpGt5ZvRIcAC2LpX2+5MP9M+7dHgjMfPRWQXFnkJgoKuSOLsfHzX/Io8Stu65Ku9SZb+aF09qFGO5bAcoj3BKVU+00mDFD0TDjKQN4bjAvbO/GgNH6Dw2lhin3HitlIQslhd0k8RbWHPHouE2pPdV5VMa/SMQ9CeWPP3kpIoTMspILQA6sSWr8zp7e9VTnWt90IpW2CJn38Z23nc3x58yG50txT9ZabVSZ2xWvAP1UVWeo5dY9y+3/622hOYx8RMPt1FsrGwPiOaUeu8hFiNIeCaMhxkoAxOG6M73GUoHdz+Q0WqkYy+sB5EbVl5tUhw/swR5Gzdr0fHN4IHLkLn04NNLhynVH8oHaI1VZZXjusCty4Cka4rmLDw== 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)(366004)(136003)(346002)(396003)(39860400002)(376002)(451199021)(41300700001)(8676002)(8936002)(6512007)(36756003)(2906002)(6506007)(186003)(26005)(66946007)(66446008)(66556008)(54906003)(91956017)(38070700005)(6916009)(316002)(38100700002)(66476007)(4326008)(64756008)(86362001)(6486002)(76116006)(2616005)(71200400001)(122000001)(478600001)(82960400001)(966005)(5660300002)(7416002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?UTF5RjRWL3NQNzJkSUVHSU5ZY3VES2dWWEM1eFM4dVpHbnFxZnZsM0hwZDZu?= =?utf-8?B?Q01mRnd6c1FudWxSSTlPY2E2ZEJHMWRyajNzYTgrVWtvZXgwMm0zSndkdFln?= =?utf-8?B?bGFIYjRpbFJodERWSytuQURCY3ovK05hOHcvcWlGMlR0UjhyL1hhcGxjUkR2?= =?utf-8?B?bVp0YXRoaFN0V3VMVW1VaXhockpGaTQyajJSdFJmZ1hURnJLM1U2MEN2eVZ1?= =?utf-8?B?TkI2VkJJdkVhd2xaeGt4OXlxWHU1SVJWLzRxNWJWcG4rb2ZzMkhoV3BQSDR0?= =?utf-8?B?YzZWTldJUklmWXk0RjZqdis1YVVCOURkVkd6VzQ4S0F0TnpBb25TSk55SWlS?= =?utf-8?B?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a3dFRXdyMDlpS1VJS2FtZ25kRHNMUEh2a0FU?= =?utf-8?B?NEE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <587A221AAA52204FA6894A7F3602E9D2@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: ccc80ba2-debd-4186-d294-08db78816810 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2023 09:15:39.4842 (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: fek71N9IWa3/88sbwSGNWOczer8ZqKhosE0h01l9LQ+lsmgNeyh67xIdSC0XKJJ0gsYOn9JiutXqj0choPjidw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7543 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, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 T24gV2VkLCAyMDIzLTA2LTI4IGF0IDE2OjEwICswMjAwLCBQZXRlciBaaWpsc3RyYSB3cm90ZToN Cj4gT24gVHVlLCBKdW4gMjcsIDIwMjMgYXQgMDI6MTI6MzhBTSArMTIwMCwgS2FpIEh1YW5nIHdy b3RlOg0KPiA+ICtzdGF0aWMgaW50IHRkeF9nZXRfc3lz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mlkZWQgYnkgdGhlIGtlcm5lbDoNCisgICAgICAgICoNCisgICAgICAgICogSW5w dXQ6DQorICAgICAgICAqICAtIFJDWDogVGhlIGJ1ZmZlciBvZiBURFNZU0lORk9fU1RSVUNUDQor ICAgICAgICAqICAtIFJEWDogVGhlIHNpemUgb2YgdGhlIFREU1lTSU5GT19TVFJVQ1QgYnVmZmVy LCBtdXN0IGJlIGF0DQorICAgICAgICAqICAgICAgICAgYXQgbGVhc3QgdGhlIHNpemUgb2YgVERT WVNJTkZPX1NUUlVDVA0KKyAgICAgICAgKiAgLSBSODogVGhlIGJ1ZmZlciBvZiB0aGUgQ01SIGFy cmF5DQorICAgICAgICAqICAtIFI5OiBUaGUgZW50cnkgbnVtYmVyIG9mIHRoZSBhcnJheSwgbXVz dCBiZSBhdCBsZWFzdA0KKyAgICAgICAgKiAgICAgICAgTUFYX0NNUlMuDQorICAgICAgICAqDQor ICAgICAgICAqIE91dHB1dCAoc3VjY2Vzc2Z1bCk6DQorICAgICAgICAqICAtIFJEWDogVGhlIGFj dHVhbCBieXRlcyB3cml0dGVuIHRvIHRoZSBURFNZU0lORk9fU1RSVUNUDQorICAgICAgICAqICAg ICAgICAgYnVmZmVyDQorICAgICAgICAqICAtIFI5OiBUaGUgYWN0dWFsIGVudHJpZXMgd3JpdHRl biB0byB0aGUgQ01SIGFycmF5Lg0KKyAgICAgICAgKi8NCiAgICAgICAgc3lzaW5mb19wYSA9IF9f cGEoc3lzaW5mbyk7DQogICAgICAgIGNtcl9hcnJheV9wYSA9IF9fcGEoY21yX2FycmF5KTsNCiAg ICAgICAgcmV0ID0gc2VhbWNhbGwoVERIX1NZU19JTkZPLCBzeXNpbmZvX3BhLCBURFNZU0lORk9f U1RSVUNUX1NJWkUsDQpAQCAtMjI4LDcgKzI0NSw2IEBAIHN0YXRpYyBpbnQgdGR4X2dldF9zeXNp bmZvKHN0cnVjdCB0ZHN5c2luZm9fc3RydWN0ICpzeXNpbmZvLA0KICAgICAgICAgICAgICA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