Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7765946rwd; Tue, 6 Jun 2023 16:18:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JOXIPQrV1k0LSxp7QllasndAyT2xlNPHGqWO5M+c7OmDUo1UcTZlJ3wt5rWFh8KSgLts1 X-Received: by 2002:a05:6358:bd30:b0:129:ca90:3b6d with SMTP id dh48-20020a056358bd3000b00129ca903b6dmr526916rwb.19.1686093525171; Tue, 06 Jun 2023 16:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686093525; cv=none; d=google.com; s=arc-20160816; b=L8r8dZot2BfclvSuGR1W+rr6WfxqPO//+KdxHXT/Ez6FlhNyI2DGhtcxW5JR4AYzH8 b4fGG+PvGHDIvKOtOPetpKyMp7gCFhEeMx4CNsRCzHHukyZLy607ScGFq0XKjmQE03yv 4lCWoWjMFd9xejKp+SA5bTPZVlUydbxXtCOD/AYF2JXG4Jhy7eixlRXRGhse0x9m/aYy Ku4DKclqi0T2zdzBqIe7RCWSu6Zgla/ti0wgaIZuUc0XqRmbcbUHTtTUAsYaM3qdMaZq GjibyX3Zr4QOkLJ4q81LXQbadGl0IdRPwR6/NL60fnljSjllZJCmNW8FV621o9TxCULw w8MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=hSS0JdktrhCdp8+MPFMBImmGxdk+d02HM+d8vXxlhEo=; b=HTOzK0T2tQMdtQ1OVtM8fPE8jmbYmZilSoBZ1VzVIdzmuaWxHZHfFVS/u41uKCFvyy MXozs/GTvOaszgoYMIDanvcK5XJwhby317NlKpx3nMa5CnZ34AbO4BzoZvyyxOnodIhX pAt0eP55m3zeZ4S91+WRk0gL2SEAmDSLtp3rliOmYd8eAKT5YdUdH1b4O1VBsa+TunOf jJ0iJoI5llMvivrNjdctT3FA9ODAVSfhhDIni2ECvemT3b9fruau3I9PYqmL26xE5uDv PrJ80feDBD9kUlxlmYOYSy7uWWr+M8hUQkn85g7nCsra2jqnfa85P/pydtXDOfwbb1Vf eC8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm3 header.b=SgCU68vn; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GarzA6WL; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p18-20020a639512000000b005349286fcc0si7867238pgd.302.2023.06.06.16.18.31; Tue, 06 Jun 2023 16:18:45 -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=@shutemov.name header.s=fm3 header.b=SgCU68vn; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=GarzA6WL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240027AbjFFWp5 (ORCPT + 99 others); Tue, 6 Jun 2023 18:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240022AbjFFWpw (ORCPT ); Tue, 6 Jun 2023 18:45:52 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC9111A for ; Tue, 6 Jun 2023 15:45:49 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2A3FB3200999; Tue, 6 Jun 2023 18:45:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 06 Jun 2023 18:45:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1686091547; x= 1686177947; bh=hSS0JdktrhCdp8+MPFMBImmGxdk+d02HM+d8vXxlhEo=; b=S gCU68vnMrvV/FktbEABGRwkdhc+K22LZ62NuJfb0yaYdXZC8mbgsiPGFtM1o6wWe sikN62H1vD1EHnOqyh601z93TzED895lAtkM01chCLihO+/ov4iQ0F6dnZ+FS71d RALXYm6uyKvWxtyV/M3f4xb/Y4beuYaE+WNdUJaTYutmTUIAXCxP3BFyQlVrAjBc MqVGaeSAc8lATYvmy9qKQmRJLIK8HHCTL3qJyPmyv05x8K1Td0rWlRokL5T4SBu7 myJR68Y7WgSya/P7QuzN5XI087X5RXZ4F1L7bnOHtQieShKzidaTJTdxV+u4G2XE gjXVHSx1nSY+ycE0anHdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1686091547; x=1686177947; bh=hSS0JdktrhCdp 8+MPFMBImmGxdk+d02HM+d8vXxlhEo=; b=GarzA6WL88bJIjRe2HI33IfkGitIG oKqDvgPW6We9j6fwf5CH2o6wwNBCy+PdfxZuoYwdN+FyGLZ1SC597tXCYEnROGCN 84mozrjLD52MIwd7qbkXe0WGLBVd66Nx8wY9M5OSvca10cK16Y5vF77040foOOO+ pY3moTVfbiNQVky2WF7jNbGvxqsLnIe3wuBcRop2dAhqP/5s1OnOdnXGcZBwttNn ZVORf7XgySQC5buls7XuCQ1zsPS9QX+J50ye0t0/tVoB9Kp0xgFlFh7UqYF/XWNU LFlW+zq8g3ByxQsxG638yICnfqvUMMnToM9ZEyQ1m4Z+AMXUD7yh/pMaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtvddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpeelgffhfeetlefhveffleevfffgtefffeelfedu udfhjeduteeggfeiheefteehjeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhirhhilhhl sehshhhuthgvmhhovhdrnhgrmhgv X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jun 2023 18:45:46 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id DAF4710F0D2; Wed, 7 Jun 2023 01:45:43 +0300 (+03) Date: Wed, 7 Jun 2023 01:45:43 +0300 From: "Kirill A. Shutemov" To: "Huang, Kai" Cc: "sathyanarayanan.kuppuswamy@linux.intel.com" , "linux-kernel@vger.kernel.org" , "kirill.shutemov@linux.intel.com" , "dave.hansen@linux.intel.com" , "Yamahata, Isaku" , Borislav Petkov Subject: Re: [PATCH] x86/tdx: Explicitly include in Message-ID: <20230606224543.a4jex2dmn43dvze4@box.shutemov.name> References: <20230606034000.380270-1-kai.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Tue, Jun 06, 2023 at 10:17:53PM +0000, Huang, Kai wrote: > On Tue, 2023-06-06 at 06:10 -0700, Sathyanarayanan Kuppuswamy wrote: > > > > On 6/5/23 8:40 PM, Kai Huang wrote: > > > Currently, in tdx_kvm_hypercall() simply returns -ENODEV > > > when TDX guest isn't enabled in the Kconfig w/o having > > > > Maybe you can explicitly say "CONFIG_INTEL_TDX_GUEST is not enabled" > > It also can be disabled by !CONFIG_KVM_GUEST. Borislav has already fixed it during unaccepted memory patchset application. He used , not . See [1] and [2]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=75d090fd167acab4d7eda7e2b65729e877c0fd64 [2] https://lore.kernel.org/all/20230606161606.GDZH9bxhrGnFkaLl2A@fat_crate.local -- Kiryl Shutsemau / Kirill A. Shutemov