Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp652860ioo; Sat, 21 May 2022 09:47:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb/f0k2ex/9YtlImiTle8FwwutJTO80It/8TcOiIzqSD6AfzlkDahPHgPm7J3ERj3FXdV+ X-Received: by 2002:aa7:d6d0:0:b0:42a:a617:7664 with SMTP id x16-20020aa7d6d0000000b0042aa6177664mr16774214edr.161.1653151652198; Sat, 21 May 2022 09:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653151652; cv=none; d=google.com; s=arc-20160816; b=MkzOefLoK5fx203WeXjbibKuSFzmbkhGWJjUinYNgwDyS/JGn3slU+fA0F/EYoGNeT RNpd4wPHLjT9ywkLsmMXgcvS7sPzIa/wjFQ1S4hgasP96TZYb+rI/BK5QvhrAL0D7fU8 E/cB2lFtmz0JIIYia9R2XnzBASeMibV5UXZ8uRphj5WwsYfNhkY2yew7aoWkg8Ldt8of dtQOAkq87j/XGwASeL7sPFsJr4bW4EvwXnIRDxKhT3FLklWXwSgOwdKKS/fd4Tal0my/ YDOMyktzJ+Z9ZQL0szp5jh3SCgfxlTrSCkGvuOGXV5p+P3pbrkIF/brhdK8lb7OXMqNs GySg== 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:dkim-signature; bh=hMYpUEpX6dHWBZ80UrE5VSddMoua3ZGSdCDjGsfAppU=; b=tX6nuA786QK9jKqRnGk2CEI7tE5CWszSK0X2JH/v8qzgnuJ6KF0yrii++tv+bp4qn8 34kImGotssIFa7/gYc4ylnC+WFPo2sR9IWIsRV2wtTf9YlJ51hXGhDZ2zpuHZHGNH7bt M2INHJQYkHuiEBOW9IoS9O51df/16/hRkQQ2K03FUv3qtLKgomGEO+lkX4y6jKa3b6uN CjM+gyuov370Pg5tnqzpLgSSQJ90MkuG7cWLBVPhwbgkiT1MwfxosDZ6K4CUxFNMIigE 809sOWUCgAmtNJFTLLAkclT4EE9GYdWkiibbOLdlvhvHYKDcLAoMIh6xL6Gzs8O7om20 hKKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MyU7Ko82; 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 hu8-20020a170907a08800b006fea42b2e6fsi4358033ejc.642.2022.05.21.09.47.06; Sat, 21 May 2022 09:47:32 -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=MyU7Ko82; 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 S1350041AbiETN76 (ORCPT + 99 others); Fri, 20 May 2022 09:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236471AbiETN7z (ORCPT ); Fri, 20 May 2022 09:59:55 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0731061631; Fri, 20 May 2022 06:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653055195; x=1684591195; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UEij5xiezDoVf9uAqUDOLlsI0A2NNtQUjynutPVKIq8=; b=MyU7Ko82oXA2EL/CfTNfIYl1BKpny39NWrOdGoyRGgRIQM+51agVSvbz 2fxRHd6j79UCnQn2tfwTY7Yp+CIOu5frCbDhCPLxAUQVNojoHmtwRb/zS h65OIxGsXIiar1jQDjVzkrZkbtZP56gCq9ERTW/LVW7Qp/xZCLraEBYKN o5oJHGnKMyn833LjrTwVztOovviUEvvnLPxWVjJm/iLLMfYhZirKQ8lOl KR77I5cunVclBjvMCc4voPhzEGzQfOmbgOBtc7oLsaVU/TE2GdDrCYWev fV6XXCKNcih7qyM+N/a5HzKwDRjmoqoa8nK0GpC8shABI2P7qQlzYC6lH Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10353"; a="252497313" X-IronPort-AV: E=Sophos;i="5.91,239,1647327600"; d="scan'208";a="252497313" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2022 06:59:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,239,1647327600"; d="scan'208";a="662269862" Received: from black.fi.intel.com ([10.237.72.28]) by FMSMGA003.fm.intel.com with ESMTP; 20 May 2022 06:59:52 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 2E69B109; Fri, 20 May 2022 16:59:52 +0300 (EEST) Date: Fri, 20 May 2022 16:59:52 +0300 From: "Kirill A. Shutemov" To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Kuppuswamy Sathyanarayanan , Dave Hansen , Tony Luck , Thomas Gleixner , Borislav Petkov , x86@kernel.org Subject: Re: [PATCH] x86/tdx: Fix tdx asm Message-ID: <20220520135952.umeymprcfrkkc4wt@black.fi.intel.com> References: <20220405232939.73860-4-kirill.shutemov@linux.intel.com> <164946766187.4207.15170758896351389068.tip-bot2@tip-bot2> <20220520083839.GR2578@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520083839.GR2578@worktop.programming.kicks-ass.net> X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, 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 On Fri, May 20, 2022 at 10:38:39AM +0200, Peter Zijlstra wrote: > On Sat, Apr 09, 2022 at 01:27:41AM -0000, tip-bot2 for Kuppuswamy Sathyanarayanan wrote: > > +SYM_FUNC_START(__tdx_module_call) > > + FRAME_BEGIN > > + TDX_MODULE_CALL host=0 > > + FRAME_END > > + ret > > +SYM_FUNC_END(__tdx_module_call) > > > +SYM_FUNC_START(__tdx_hypercall) > > > + > > + retq > > +.Lpanic: > > + call __tdx_hypercall_failed > > + /* __tdx_hypercall_failed never returns */ > > + jmp .Lpanic > > +SYM_FUNC_END(__tdx_hypercall) > > :-( > > --- > Subject: x86/tdx: Fix tdx asm > > Because build-testing is over-rated, a few trivial objtool complaints: > > vmlinux.o: warning: objtool: __tdx_module_call+0x3e: missing int3 after ret > vmlinux.o: warning: objtool: __tdx_hypercall+0x6e: missing int3 after ret > > Fixes: eb94f1b6a70a ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions") > Signed-off-by: Peter Zijlstra (Intel) Oopsie :( Reviewed-by: Kirill A. Shutemov > --- > arch/x86/coco/tdx/tdcall.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/coco/tdx/tdcall.S b/arch/x86/coco/tdx/tdcall.S > index eeb4511dc414..f9eb1134f22d 100644 > --- a/arch/x86/coco/tdx/tdcall.S > +++ b/arch/x86/coco/tdx/tdcall.S > @@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call) > FRAME_BEGIN > TDX_MODULE_CALL host=0 > FRAME_END > - ret > + RET > SYM_FUNC_END(__tdx_module_call) > > /* > @@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall) > > FRAME_END > > - retq > + RET > .Lpanic: > call __tdx_hypercall_failed > /* __tdx_hypercall_failed never returns */ > -- Kirill A. Shutemov