From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDA76C4332F for ; Thu, 8 Dec 2022 22:08:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbiLHWIu (ORCPT ); Thu, 8 Dec 2022 17:08:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiLHWIM (ORCPT ); Thu, 8 Dec 2022 17:08:12 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0422A79C35; Thu, 8 Dec 2022 14:07:09 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6EAC25C00DE; Thu, 8 Dec 2022 17:07:08 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 08 Dec 2022 17:07:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc: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=1670537228; x=1670623628; bh=Dy B+B8MtQb2fOnIlvIxqzSDOKodU/cQnRbndcmgRAbg=; b=HNhMVbw5qWol0S3yls x35r7e29BknDwgYpIClfd43/NXUEp90AJAe4hAJ7e0McdPHPd/QhVo2Wx7bxaMb2 ouYEJY07izoVGMVWfeqUBy8EPceiAf1uZbzR1Qh/SXkFwakkJzhiB5bAi2wXuwXD BxPXOzj+H083LY3VOyGC7UmQpL5swywAqltM6tyB99rXam+R3lnkRZX8mEfpN4Lr +HtTj+xqpVO8AXilvXE06V0xokCp59cnTxGClE8aQPgZF/Mc6TV3nttVxYMyyOFg 5Z5+mmNfD2SNbeZWlq3gYNJxk2vDWx4bUrWs/GOWdUrmqt3o+l+L2KMv8lvP+qWq MeZw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm2; t=1670537228; x=1670623628; bh=DyB+B8MtQb2fOnIlvIxqzSDOKodU /cQnRbndcmgRAbg=; b=h2emNTSpOXXr+KNTvpkiPqusLJXQuK3wBz+5OWsBa6P/ a4drG90UXraKh6bZBvXRQNqJN+vv5FW8Cu0HclocdQmFLpDjLJYRB68T5UQxYAob EGylAGFBpZWdADv0jnFl6HI+ttQxFilCDyy36INTB9icyv99z4+fdqHOWQiq1HGO AST2L4g7kDr1U9bHRBVW6CG/qvS67MmPVhGIyjrh7SRfX2WraRbJnsDcsbF4ycEa 1+OqA4WZhVIH51EFIHvFOvqBGfjUWzqYu8Zl1x6/u+rm8ra6UyP8QC7LAlfkOgBX Sy2Nt+B0waqIa5x20I88ZhiZ5OoM6GeBcHJV9LVf8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgdduheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdttddttddtvdenucfhrhhomhepfdfmihhr ihhllhcutedrucfuhhhuthgvmhhovhdfuceokhhirhhilhhlsehshhhuthgvmhhovhdrnh grmhgvqeenucggtffrrghtthgvrhhnpefhieeghfdtfeehtdeftdehgfehuddtvdeuheet tddtheejueekjeegueeivdektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehkihhrihhllhesshhhuhhtvghmohhvrdhnrghmvg X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Dec 2022 17:07:07 -0500 (EST) Received: by box.shutemov.name (Postfix, from userid 1000) id DE081109CB7; Fri, 9 Dec 2022 01:07:05 +0300 (+03) Date: Fri, 9 Dec 2022 01:07:05 +0300 From: "Kirill A. Shutemov" To: Dexuan Cui Cc: ak@linux.intel.com, arnd@arndb.de, bp@alien8.de, brijesh.singh@amd.com, dan.j.williams@intel.com, dave.hansen@linux.intel.com, haiyangz@microsoft.com, hpa@zytor.com, jane.chu@oracle.com, kirill.shutemov@linux.intel.com, kys@microsoft.com, linux-arch@vger.kernel.org, linux-hyperv@vger.kernel.org, luto@kernel.org, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, sathyanarayanan.kuppuswamy@linux.intel.com, seanjc@google.com, tglx@linutronix.de, tony.luck@intel.com, wei.liu@kernel.org, x86@kernel.org, mikelley@microsoft.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/6] x86/tdx: Expand __tdx_hypercall() to handle more arguments Message-ID: <20221208220705.gog2lmlooio4act3@box.shutemov.name> References: <20221207003325.21503-1-decui@microsoft.com> <20221207003325.21503-5-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221207003325.21503-5-decui@microsoft.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 06, 2022 at 04:33:23PM -0800, Dexuan Cui wrote: > From: "Kirill A. Shutemov" > > So far __tdx_hypercall() only handles six arguments for VMCALL. > Expanding it to six more register would allow to cover more use-cases. > > Using RDI and RSI as VMCALL arguments requires more register shuffling. > RAX is used to hold tdx_hypercall_args pointer and RBP stores flags. > > While there, fix typo in the comment on panic branch. > > Signed-off-by: Kirill A. Shutemov > Reviewed-by: Dexuan Cui > Tested-by: Dexuan Cui Since you submit the patch you need to add your Signed-off-by. -- Kiryl Shutsemau / Kirill A. Shutemov