Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1730427rwb; Thu, 8 Dec 2022 14:40:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf6PMCLTMqRHXS/iDOMlK874nhbNp/LY5Gn6GhmvWkIctA6KqmCl/jCxgf2Dr3LvzBg1i3xB X-Received: by 2002:a17:906:3c17:b0:7c0:dfb7:4476 with SMTP id h23-20020a1709063c1700b007c0dfb74476mr3007668ejg.57.1670539203218; Thu, 08 Dec 2022 14:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670539203; cv=none; d=google.com; s=arc-20160816; b=v3cMhzZTzTlcOQh53PlOa03qLwopxpwVkVv46iX2newteiQWOu11i6OG9apuNC9yNw FF0prFQlPbKt3wtcbZX2bdO5gy838/pTXe9tp0OiOl6meSc71vhF2MF/+eZWBAG4Rfe6 keTADuzOJ3ZnGJXY2lpuR9uyZ7lkpDghYjU/plrlD1Kab4erb+BZl7E0a+dSQ86wtZRB PMSuQhvFMc3+R4q7BmGmGJYAAEKhISb6jYyYs4IvZtI+ky5/RP8e/hgRHf37vGugJEju pZgh+mt4rQ+hCWdlV70VTECrgJi0y8oESrM1k7gTNJG49bvjkNdOLuel3r6cx5JqrMV6 2ZEw== 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=DyB+B8MtQb2fOnIlvIxqzSDOKodU/cQnRbndcmgRAbg=; b=mP0r9HIpbceaHLBZDWOlNZYo9OxGvmOCot10uTagK6Oeno8wWJ4Fj9qlnDDNhPbJo+ fs0NIENrI4plUQdBAq/jZDCLqnWu4OmQrBg3860waEnp0D1eM0eRLIbNLGYP/ynTEBLk femHclqQjct6q4/tvzm59OCfEhZmZGHttQQ8w6gvHvwGXAt3lxA2ST+wcJmvamYYNjce qwTDibH/wcbOArMzeSyaHcI0ZNa+hY/NPLsdT0zaZA54At1NrvKDKWz+0XaT1UoQcVW+ HpjaLLwhUxXt3OEO4BkphAfw4r/3WgqHHE1UsssorxHmnHeGsez0+0cSxT+QNcnu9T90 xHWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm3 header.b=HNhMVbw5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=h2emNTSp; 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 dz15-20020a0564021d4f00b0046af62544a0si9313139edb.401.2022.12.08.14.39.45; Thu, 08 Dec 2022 14:40:03 -0800 (PST) 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=HNhMVbw5; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=h2emNTSp; 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 S229558AbiLHWIt (ORCPT + 73 others); Thu, 8 Dec 2022 17:08:49 -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> 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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, 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