Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6832173rwd; Tue, 6 Jun 2023 02:33:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yGlrW+IDhsaIxFCzUp2Ffn5s3iiJLXo1/wgtj4Xxs+FnOIHvPo4HZf5jrK/OOpjC0tCI1 X-Received: by 2002:a05:622a:1d4:b0:3f6:c0f7:a5d7 with SMTP id t20-20020a05622a01d400b003f6c0f7a5d7mr1558929qtw.35.1686044037917; Tue, 06 Jun 2023 02:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686044037; cv=none; d=google.com; s=arc-20160816; b=JxwBXqSb152FbLcX0YImGSfrCx52OfJvpSSNC/oPSScVM6GaGpZPFPOpspgKxPgKAd 6kAzWcozwsaFTuOewbXhGDhUu6RyBxCaLd9eZhE0gglpRkfFJZNQe5dVqJOs4uQ9Kdqi Bnwjsx6NRvr8kzMKleh5IFFsaEiK9llQprCpLwTe970wtuvr4HY6C9MbchuhpQWdtZfI RmT6tOOVawYbq+optpwgMAE+LhtGhjBIDaZCD+eRYfrVtCrjGXsRuTsPCEfcOt4dErMO iU3FbDQKkF+PYTVwVzBwU2xYBhOpz6YaLRzv/fTIjg98kz84zxmPxZRGijTqfnlrFbOr HkhQ== 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=TDh4L+clH7e0D9NAM99reV6x/2Nq0Zi6BrkhSQ4xHfk=; b=f/E2n/uZOfuWsuRlSwI5QQcuB5GR4f95J+dX7CNOV0uFpf/432S4gZtHems41zz+j+ F6XxnWJnjR0OI7Lvzi1JGtdg/I3fSF83lTMF8HpZi5P2JYj/83FmrKK4btxTMcL7dDBp 2kjvyyjTxlFxKyDe78KVI7vsxeV773JxjUpPynMFq++9WwigXsp1S/8dCixyCdqQVEAy 1BGKGVa4IH2tETXYz48gvarchiF0GksDB1akG9bRkky+OmpKByuFOVf+nzYL3o8V6dge TV3P903/uBdFN2Vra4GyjUP81Bo9H0c+aVS0b+h9a75ihXCyYw8Xx1G5vZPguMlcnT6l Jrxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm3 header.b=SpA0yk8F; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=h3RhbhhR; 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 v39-20020a05622a18a700b003f9ae403acasi885865qtc.263.2023.06.06.02.33.43; Tue, 06 Jun 2023 02:33:57 -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=SpA0yk8F; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=h3RhbhhR; 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 S237353AbjFFI47 (ORCPT + 99 others); Tue, 6 Jun 2023 04:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237357AbjFFI4t (ORCPT ); Tue, 6 Jun 2023 04:56:49 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC18E7F for ; Tue, 6 Jun 2023 01:56:30 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id DD8843200B43; Tue, 6 Jun 2023 04:56:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 06 Jun 2023 04:56:28 -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=1686041787; x= 1686128187; bh=TDh4L+clH7e0D9NAM99reV6x/2Nq0Zi6BrkhSQ4xHfk=; b=S pA0yk8F2m2zq0kF4KAmGe8gRJFS+BcbdJuZJFZMe0j3cEZ2V1cOY60jngZrUsL4d T9xK0i2wm2olhnE2UFn/6I0hgbAPMWfJ8mapdZn1mmA9A7wOf6PEA6XgkrYNrAZu 6+tnWMx3aV9zC16Z4v4tzW2TgbBmTgfw/b32oVfU1rBRycuJKYwLfNOY+gkJCFM2 nqs67tpDMnOw23UjslYho+R4G1tlyRd4f5Vh2W8bCoh9bsgtmB56SNaQB0SzbY6M ZnWOXqGFcAZX2FElUf7HzgMcuai7oKLsBK7IiobKB8wMl1wxBG9tDoZFj5eUrLVW 8BHnfNAuFnQFHSx4UszAg== 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=1686041787; x=1686128187; bh=TDh4L+clH7e0D 9NAM99reV6x/2Nq0Zi6BrkhSQ4xHfk=; b=h3RhbhhRU4lNnrhHBgmq9mc42j+zo fWegk8Los5wuzoRprEekNolS29X+hlvMtuAUewIkaRsTYgdnQErOxuCLljAbnRm6 kyNCmagmvLTWkLkipNCGwFvDX/gTVN4X57U7CX4hKkpC8ID0iXwKk9Ld8GrL3z58 /c8Oa7b7GbiQPU1EaGodY4kkCueFna4eu0NbAHb3dHIS2EXx6TV6td/5PqG4373U 2wxOcOBQ0OYkBX8G4UVmqcW9TRkipv7MY6gVU740S1LirK2LZkVobcWO2UvN1L8Z /5IGDjE7ub5WeGUF4WR+6A0DBeDnwuVxJ3rHaNLF+aDwVKZIthPqb1jzg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtuddguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpefhieeghfdtfeehtdeftdehgfehuddtvdeuheet tddtheejueekjeegueeivdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jun 2023 04:56:26 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id DDA1110A637; Tue, 6 Jun 2023 11:56:23 +0300 (+03) Date: Tue, 6 Jun 2023 11:56:23 +0300 From: "Kirill A. Shutemov" To: Kai Huang Cc: linux-kernel@vger.kernel.org, Dave Hansen , Kuppuswamy Sathyanarayanan , "Kirill A . Shutemov" , Isaku Yamahata Subject: Re: [PATCH] x86/tdx: Explicitly include in Message-ID: <20230606085623.ljkzrxcmbzhvs32p@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: <20230606034000.380270-1-kai.huang@intel.com> 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 03:40:00PM +1200, Kai Huang wrote: > Currently, in tdx_kvm_hypercall() simply returns -ENODEV > when TDX guest isn't enabled in the Kconfig w/o having > header explicitly included. Although the current code doesn't have > build error, in general it is a good practice to explicitly include the > header to make sure any future patch which uses won't get > build error due to error code not being defined. > > Fixes: cfb8ec7a31f2 ("x86/tdx: Wire up KVM hypercalls") > Suggested-by: Dave Hansen > Cc: Kuppuswamy Sathyanarayanan > Cc: Kirill A. Shutemov > Cc: Dave Hansen > Cc: Isaku Yamahata > Signed-off-by: Kai Huang Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov