mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tony Lindgren <tony.lindgren@linux.intel.com>
To: Xu Yilun <yilun.xu@linux.intel.com>
Cc: dave.hansen@intel.com, dave.hansen@linux.intel.com,
	x86@kernel.org, linux-kernel@vger.kernel.org, kas@kernel.org,
	nik.borisov@suse.com, rick.p.edgecombe@intel.com,
	yilun.xu@intel.com, linux-coco@lists.linux.dev
Subject: Re: [PATCH v5] x86/virt/tdx: Formalize SEAMCALL leaf version encoding support
Date: Mon, 7 Sep 2026 14:20:46 +0300	[thread overview]
Message-ID: <ap6eDuCtcQ_GjTbI@tlindgre-MOBL1> (raw)
In-Reply-To: <20260901105436.461823-1-yilun.xu@linux.intel.com>

On Tue, Sep 01, 2026 at 06:54:36PM +0800, Xu Yilun wrote:
> --- a/arch/x86/include/asm/shared/tdx.h
> +++ b/arch/x86/include/asm/shared/tdx.h
> @@ -122,9 +122,11 @@
>  #include <linux/compiler_attributes.h>
>  
>  /*
> - * Used in __tdcall*() to gather the input/output registers' values of the
> - * TDCALL instruction when requesting services from the TDX module. This is a
> - * software only structure and not part of the TDX module/VMM ABI
> + * Used in __tdcall*() to gather the input/output parameters of the TDCALL
> + * instruction when requesting services from the TDX module. "version" is
> + * encoded in RAX along with the leaf number. Others are raw input/output
> + * registers' values. This is a software only structure and not part of the TDX
> + * module/VMM ABI.
>   */

For better readability and a few less lines of changes, you could just
add a one-liner to the existing comments:

Note that "version" gets encoded into RAX along with the leaf number.

Anyways, I'm happy with the current version without changes. The patch
cleans up the version encoding issue nicely, so:

Reviewed-by: Tony Lindgren <tony.lindgren@linux.intel.com>

  reply	other threads:[~2026-09-07 11:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-01 10:54 Xu Yilun
2026-09-07 11:20 ` Tony Lindgren [this message]
2026-09-07 14:35   ` Dave Hansen
2026-09-08  2:06     ` Xu Yilun
2026-09-08  6:26 ` Binbin Wu
2026-09-08  9:43   ` Xu Yilun
2026-09-10  6:21     ` Binbin Wu
2026-09-10 20:14 ` Edgecombe, Rick P
2026-09-10 20:15   ` Edgecombe, Rick P

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ap6eDuCtcQ_GjTbI@tlindgre-MOBL1 \
    --to=tony.lindgren@linux.intel.com \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=kas@kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nik.borisov@suse.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=x86@kernel.org \
    --cc=yilun.xu@intel.com \
    --cc=yilun.xu@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®