From nobody Mon Jun 15 20:32:56 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0CEE6313E21 for ; Mon, 13 Apr 2026 19:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776108972; cv=none; b=krvZ1IRTgU0FCx3JGvvHP3yKmQHOdVp4CuzMrvRB+a0bb5f1xly6+BQyxjWc5eivoAInlow3qNpbCMgz8vD7GZyDg0qe2sSxbQuIvsudRg6xohkyievNUhKQQex4nLZvZPUe++MwLovweJuGeqhU3v8eFutzbJg+D704nFsfors= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776108972; c=relaxed/simple; bh=Ll213dBX4gHDFqRg4h40IMKFIohtS3nGDl14nTqD6pQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nKUMsFIzVuix4LgwC5V5OD5cArDYJc4L4A5yX/uClp3478/EkeSLKg92LCSuO5E+pPn3iZ5OGg5opTw44cNggrw9MIEDBD4PqbwiGZhMx7Sbk23Dmkfc/ED6dca6VkZKbt5JUG/w374Ms4/S7jJooPvKBJk92ojAbye82/k6+ho= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eoFjizZB; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eoFjizZB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1776108970; x=1807644970; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ll213dBX4gHDFqRg4h40IMKFIohtS3nGDl14nTqD6pQ=; b=eoFjizZBqdaQkAPigHpn1LbuMztYD6G8WTTpcXoYG8UBC6O0GpZOuimC G5kXoIbOCJzYi2YXTLK0Nktp7hKHsKJBj7RWidaHCWzxP5mQforq+MBUx tsPsza2a3R7OdgtsJLnYI6w2wa09mJcVLMmY6p9uHx4WxKn37/b8IRgit 1gymTef62UfHyb5E/MaVdO9xjPdboejXP3nLiyo4Suyu0tooTV0QkSJ1F joJP9QA7kHFSdxxHldsoSBpR6XJQAMRtY9Aostb88axzOLEcGeEd+PvMG Kx8nqxJffDZ+WaJ6p99L9hynCG4Y6skYX0TYhwq2/QMovrd2ihTMYGA70 A==; X-CSE-ConnectionGUID: 3qlyT5q+QbGp/g6daw0Nhg== X-CSE-MsgGUID: kKDI2NBKTzmPs1xFWLW7Qg== X-IronPort-AV: E=McAfee;i="6800,10657,11758"; a="77075706" X-IronPort-AV: E=Sophos;i="6.23,177,1770624000"; d="scan'208";a="77075706" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2026 12:36:09 -0700 X-CSE-ConnectionGUID: X3ddSND/ShuQJXM4rkgYuQ== X-CSE-MsgGUID: Io8ZyVf0TuOb4Scxn4VkCw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,177,1770624000"; d="scan'208";a="267864870" Received: from smtp.ostc.intel.com ([10.54.29.231]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2026 12:36:11 -0700 Received: from ray2.sr71.net (unknown [10.125.109.151]) by smtp.ostc.intel.com (Postfix) with ESMTP id 610DF5E8D; Mon, 13 Apr 2026 12:36:10 -0700 (PDT) From: Dave Hansen To: torvalds@linux-foundation.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Dave Hansen Subject: [GIT PULL] x86/tdx for 7.1-rc1 Date: Mon, 13 Apr 2026 12:35:52 -0700 Message-ID: <20260413193552.1630383-1-dave.hansen@linux.intel.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Date: Sun Mar 29 06:46:18 2026 +0200 Merge branch 'linus' into x86/tdx, to resolve conflict =20 Conflicts: drivers/virt/coco/tdx-guest/tdx-guest.c =20 Resolve conflict between upstream fix: =20 c3fd16c3b98e ("virt: tdx-guest: Fix handling of host controlled 'quot= e' buffer length") =20 ... and pending commit in tip:x86/tdx: =20 0f409eaea53e ("virt: tdx-guest: Return error for GetQuote failures") =20 Signed-off-by: Ingo Molnar 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; } =20 + if (quote_buf->status !=3D GET_QUOTE_SUCCESS) { + pr_debug("GetQuote request failed, status:%llx\n", quote_buf->status); + return -EIO; + } + - buf =3D kvmemdup(quote_buf->data, quote_buf->out_len, GFP_KERNEL); + out_len =3D READ_ONCE(quote_buf->out_len); +=20 + if (out_len > TDX_QUOTE_MAX_LEN) + return -EFBIG; +=20 + buf =3D kvmemdup(quote_buf->data, out_len, GFP_KERNEL); if (!buf) return -ENOMEM;