mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@linux.intel.com>
To: torvalds@linux-foundation.org
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
	Dave Hansen <dave.hansen@linux.intel.com>
Subject: [GIT PULL] x86/tdx for 7.1-rc1
Date: Mon, 13 Apr 2026 12:35:52 -0700	[thread overview]
Message-ID: <20260413193552.1630383-1-dave.hansen@linux.intel.com> (raw)

Hi Linus,

Please pull some x86/tdx changes for 7.1-rc1.

The only real thing of note here is printing the TDX module version.
This is a little silly on its own, but the upcoming TDX module update
code needs the same TDX module call. This shrinks that set a wee bit.

There's also few minor macro cleanups and a tweak to the GetQuote ABI
to make it easier for userspace to detect zero-length (failed) quotes.

The GetQuote tweak collides with a fix that showed up around 7.0-rc5.
Ingo resolved the conflict for the tip tree and I've appended it here
in case it is useful to you.

--

The following changes since commit 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f:

  Linux 7.0-rc1 (2026-02-22 13:18:59 -0800)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_tdx_for_7.1-rc1

for you to fetch changes up to 0f409eaea53e49932cf92a761de66345c9a4b4be:

  virt: tdx-guest: Return error for GetQuote failures (2026-03-05 13:23:58 -0800)

----------------------------------------------------------------
 - Print TDX module version during boot
 - Make TDX attribute naming consistent

----------------------------------------------------------------
Chao Gao (1):
      x86/virt/tdx: Retrieve TDX module version

Kuppuswamy Sathyanarayanan (1):
      virt: tdx-guest: Return error for GetQuote failures

Vishal Verma (1):
      x86/virt/tdx: Print TDX module version during init

Xiaoyao Li (4):
      x86/tdx: Fix the typo in TDX_ATTR_MIGRTABLE
      KVM/TDX: Remove redundant definitions of TDX_TD_ATTR_*
      x86/tdx: Rename TDX_ATTR_* to TDX_TD_ATTR_*
      KVM/TDX: Rename KVM_SUPPORTED_TD_ATTRS to KVM_SUPPORTED_TDX_TD_ATTRS

 arch/x86/coco/tdx/debug.c                   | 26 +++++++--------
 arch/x86/coco/tdx/tdx.c                     |  8 ++---
 arch/x86/include/asm/shared/tdx.h           | 50 ++++++++++++++---------------
 arch/x86/include/asm/tdx_global_metadata.h  |  7 ++++
 arch/x86/kvm/vmx/tdx.c                      |  4 +--
 arch/x86/kvm/vmx/tdx_arch.h                 |  6 ----
 arch/x86/virt/vmx/tdx/tdx_global_metadata.c | 22 +++++++++++++
 drivers/virt/coco/tdx-guest/tdx-guest.c     |  5 +++
 8 files changed, 78 insertions(+), 50 deletions(-)

----

commit 87d034b5b9f36c66bf02af587fb6935af88ffbf1
Merge: 0f409eaea53e4 cbfffcca2bf06
Author: Ingo Molnar <mingo@kernel.org>
Date:   Sun Mar 29 06:46:18 2026 +0200

    Merge branch 'linus' into x86/tdx, to resolve conflict
    
     Conflicts:
            drivers/virt/coco/tdx-guest/tdx-guest.c
    
    Resolve conflict between upstream fix:
    
      c3fd16c3b98e ("virt: tdx-guest: Fix handling of host controlled 'quote' buffer length")
    
    ... and pending commit in tip:x86/tdx:
    
      0f409eaea53e ("virt: tdx-guest: Return error for GetQuote failures")
    
    Signed-off-by: Ingo Molnar <mingo@kernel.org>

diff --cc drivers/virt/coco/tdx-guest/tdx-guest.c
index 23ef3991c4d5a,7cee97559ba29..a9ecc46df187d
--- a/drivers/virt/coco/tdx-guest/tdx-guest.c
+++ b/drivers/virt/coco/tdx-guest/tdx-guest.c
@@@ -306,12 -309,12 +309,17 @@@ static int tdx_report_new_locked(struc
  		return ret;
  	}
  
 +	if (quote_buf->status != GET_QUOTE_SUCCESS) {
 +		pr_debug("GetQuote request failed, status:%llx\n", quote_buf->status);
 +		return -EIO;
 +	}
 +
- 	buf = kvmemdup(quote_buf->data, quote_buf->out_len, GFP_KERNEL);
+ 	out_len = READ_ONCE(quote_buf->out_len);
+ 
+ 	if (out_len > TDX_QUOTE_MAX_LEN)
+ 		return -EFBIG;
+ 
+ 	buf = kvmemdup(quote_buf->data, out_len, GFP_KERNEL);
  	if (!buf)
  		return -ENOMEM;
  

             reply	other threads:[~2026-04-13 19:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13 19:35 Dave Hansen [this message]
2026-04-14 21:45 ` pr-tracker-bot

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=20260413193552.1630383-1-dave.hansen@linux.intel.com \
    --to=dave.hansen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    /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

Powered by JetHome