Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp743871pxj; Thu, 27 May 2021 10:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNM8TA0bWBXhk0xQy1TWyP5c1V4aoyuJijUx6rbu0XfF0m+uiPbLK8Q7T4l80N+BghzcSj X-Received: by 2002:a17:906:351a:: with SMTP id r26mr5068600eja.389.1622136890142; Thu, 27 May 2021 10:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622136890; cv=none; d=google.com; s=arc-20160816; b=KXoObEPYFTB03FCHIns4Zm+ZLIREDAVbJuU6V7fN2WJ+nsG+y50KRprd3HUwumpDmh hjAQjPqy4UlMzLTEwHdPyVdqEvzOYMw2D2/b60xP7rnT1gUt9q2RajDCGRscYgAnxGNX vq11uKBSt4F5hoAMLSx3an2aGuUrltv3JoOZQXQECst/yvgQ1bwRBzzT3IMPP24OUOAx PuPM5QNaecorHgnsvcugc2p1MTmG5hDEQgimv8Q/gUaZwE0yLr7JUpzhtEIi+lEA8zY5 GMswfgmblNWazliEWIhubOVm36XmI0L+XI9I6wt8KdjFCs1cx3BoexZI8tDDsGOrBxIY 644g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=65XoQzt8GNZuAN1b1gV8yWow0EsxoLY7Ae/JDOMlPnY=; b=D7s5dwe6iV/uurL9/JBcJdJp+3OtaUQpJaFD0Pk/77atI2joypyRTNSQmFsF9/UJwg UpWzof7ULGynZRFdNTPa+SpXGjiIgt40BRU2iQ2S3qjO4v5SkwAWTpH5ewS6DAXVLHhC QKz8+7xsYNywjcU7jgg4hG3LwgRQnf1tCB0ygwql5o/o9++HJfn0ZJYjRBdBekvR6YJe Wcdj2Z1Bkq498ar4clLf/81Tz+Zel5YDcIMQu/aUAg7/E06MQjQiyVsGbqUC8eB1Mtqn UNbxLYKj38GhxPE463VnVHx31HVw2gFYnTAeImFF28sUMaSMp9ODf7dtOw9OFFr+vR1o cLXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si2750672edq.516.2021.05.27.10.34.25; Thu, 27 May 2021 10:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235847AbhE0P0y (ORCPT + 99 others); Thu, 27 May 2021 11:26:54 -0400 Received: from mga06.intel.com ([134.134.136.31]:51115 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235017AbhE0P0w (ORCPT ); Thu, 27 May 2021 11:26:52 -0400 IronPort-SDR: WSPuou58lZto3/lIXv+rbk171bVf3o1DMH33ZmhzzW5PeLh6C+3eXNiYFLwMESUdepFkezyfZf /3WJbrJ6SnOg== X-IronPort-AV: E=McAfee;i="6200,9189,9997"; a="263960612" X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="263960612" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2021 08:25:18 -0700 IronPort-SDR: EyDJ59j1DX/f1fMCKGVOYC6j18om8AfkLU7eIDiIjUrWwxAmdBTeRrCDPlD9eS9UbTAStNpYoP lC1OoEaQDZRw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="472559815" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by FMSMGA003.fm.intel.com with ESMTP; 27 May 2021 08:25:17 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Thu, 27 May 2021 08:25:16 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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.2242.4; Thu, 27 May 2021 08:25:16 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2242.008; Thu, 27 May 2021 08:25:16 -0700 From: "Luck, Tony" To: Kuppuswamy Sathyanarayanan , Peter Zijlstra , Andy Lutomirski , "Hansen, Dave" CC: Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , "Williams, Dan J" , "Raj, Ashok" , Sean Christopherson , "linux-kernel@vger.kernel.org" Subject: RE: [RFC v2-fix-v2 1/1] x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions Thread-Topic: [RFC v2-fix-v2 1/1] x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions Thread-Index: AQHXUo+HGWahrGi/A0SEFraSQ6BB26r3cj8A Date: Thu, 27 May 2021 15:25:16 +0000 Message-ID: <974d8050cb974d6d80b0033e4b9fd0bf@intel.com> References: <77545da6-d534-e4c2-a60b-085705e3f0b7@linux.intel.com> <20210527003033.3632700-1-sathyanarayanan.kuppuswamy@linux.intel.com> In-Reply-To: <20210527003033.3632700-1-sathyanarayanan.kuppuswamy@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBHdWVzdHMgY29tbXVuaWNhdGUgd2l0aCBWTU1zIHdpdGggaHlwZXJjYWxscy4gSGlzdG9yaWNh bGx5LCB0aGVzZQ0KPiBhcmUgaW1wbGVtZW50ZWQgdXNpbmcgaW5zdHJ1Y3Rpb25zIHRoYXQgYXJl IGtub3duIHRvIGNhdXNlIFZNRVhJVHMNCj4gbGlrZSB2bWNhbGwsIHZtbGF1bmNoLCBldGMuIEhv d2V2ZXIsIHdpdGggVERYLCBWTUVYSVRzIG5vIGxvbmdlcg0KPiBleHBvc2UgZ3Vlc3Qgc3RhdGUg dG8gdGhlIGhvc3QuIMKgVGhpcyBwcmV2ZW50cyB0aGUgb2xkIGh5cGVyY2FsbA0KPiBtZWNoYW5p c21zIGZyb20gd29ya2luZy4gU28gdG8gY29tbXVuaWNhdGUgd2l0aCBWTU0sIFREWA0KPiBzcGVj aWZpY2F0aW9uIGRlZmluZXMgYSBuZXcgaW5zdHJ1Y3Rpb24gY2FsbGVkICJ0ZGNhbGwiLg0KDQpZ b3UgdXNlIGFsbCBjYXBzIFREQ0FMTCBldmVyeXdoZXJlIGVsc2UgaW4gdGhpcyBjb21taXQgbWVz c2FnZS4NCkxvb2tzIG9kZCB0byBoYXZlIHF1b3RlZCBsb3dlciBjYXNlIGhlcmUuDQoNCj4gSW4g YSBURFggYmFzZWQgVk0sIHNpbmNlIFZNTSBpcyBhbiB1bnRydXN0ZWQgZW50aXR5LCBhIGludGVy bWVkaWFyeQ0KPiBsYXllciAoVERYIG1vZHVsZ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