From nobody Fri Oct 3 21:00:31 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 3BC9C29D272; Mon, 25 Aug 2025 22:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756162774; cv=none; b=KPcTx5p2X4IDkrJTzM2D6VrhVYjgUVc4lcOqwEKjitSbpGLDahuba1rMngsXnVtdFcUYyhNAWRY011LcEsiNJ2DwuNJlJQJs2GqbNC3uct9+P+66FCb4X1mOD37TgsSMrtc5KYEH5wJgN0495pQXk+Cmf7+4g57uxOwHBgt4yq0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756162774; c=relaxed/simple; bh=WUHLDpzN4yyBJ03WNWSWNPYEC4Nh6LTe3WOYShwnaxQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n071l9mg4rqSdFK8XlqN9HVA8T5O3CYIcqWxZ6zW5dM1GtS1HuA4MdQ4B982gNCCby8W1VCDixNi+eFrmUxYuckiBSR6DnKwYjPMKdIWXD6kRa7zSr8u01DD6cZWWkmEfsD8RGAQ4FOfc6M6YNKHr5uk1hOXpOdogjBjMRc22nQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AheI1+5p; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AheI1+5p" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1756162773; x=1787698773; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WUHLDpzN4yyBJ03WNWSWNPYEC4Nh6LTe3WOYShwnaxQ=; b=AheI1+5pi70upR4AVB5/8iHftFBpZP6lZz7P7XtIfzUYWxxTYaX0KXoN 5ZwPC5PlcxF3+9VRKuq+BGnXEZUfZQTZLUP0ss1JA0sGXUgpQD7Nt2Sq6 xEiCnGARtmyGdDQ33D+yuiRaR2V6qUj+r2Px6fkaK+UHFRxD+fmuGYjFM Y89/DFgE6qrixbCydb5jjPfCpNqa2rYEZvuawXeRGrEcZpYC3Lpv15AJp 9S0I5YMZzFjKJGrzwgwxZj+6NROqEfKwSBSqa0ajEw7Fzh68T/7DPV751 mv7aFyJbW4Y/6gcXy0a4anZgE1JDN2UNIfSKbNjTcmhaxJViDQ5V2rUwf A==; X-CSE-ConnectionGUID: JussvpciQz6Yu6NpQLyWtg== X-CSE-MsgGUID: ZAbB1pw+QO+IvEAbfcn0UA== X-IronPort-AV: E=McAfee;i="6800,10657,11533"; a="58533424" X-IronPort-AV: E=Sophos;i="6.18,214,1751266800"; d="scan'208";a="58533424" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 15:59:33 -0700 X-CSE-ConnectionGUID: 04ZJIXVGSNevN9VfUuNwsg== X-CSE-MsgGUID: 4WpC5Uo+QKGi1gJH/qHkYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.18,214,1751266800"; d="scan'208";a="200308468" Received: from ldmartin-desk2.corp.intel.com (HELO khuang2-desk.gar.corp.intel.com) ([10.124.223.59]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2025 15:59:27 -0700 From: Kai Huang To: dave.hansen@intel.com, bp@alien8.de, tglx@linutronix.de, peterz@infradead.org, mingo@redhat.com, hpa@zytor.com, thomas.lendacky@amd.com Cc: x86@kernel.org, kas@kernel.org, rick.p.edgecombe@intel.com, dwmw@amazon.co.uk, linux-kernel@vger.kernel.org, pbonzini@redhat.com, seanjc@google.com, kvm@vger.kernel.org, reinette.chatre@intel.com, isaku.yamahata@intel.com, dan.j.williams@intel.com, ashish.kalra@amd.com, nik.borisov@suse.com, chao.gao@intel.com, sagis@google.com, farrah.chen@intel.com Subject: [PATCH v7 6/7] x86/virt/tdx: Update the kexec section in the TDX documentation Date: Tue, 26 Aug 2025 10:58:41 +1200 Message-ID: <38ebd5c1ba0f8eff392807efb54e90354cc9d105.1756161460.git.kai.huang@intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: References: 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" TDX host kernel now supports kexec/kdump. Update the documentation to reflect that. Opportunistically, remove the parentheses in "Kexec()" and move this section under the "Erratum" section because the updated "Kexec" section now refers to that erratum. Signed-off-by: Kai Huang Tested-by: Farrah Chen Reviewed-by: Rick Edgecombe --- Documentation/arch/x86/tdx.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/arch/x86/tdx.rst b/Documentation/arch/x86/tdx.rst index 719043cd8b46..61670e7df2f7 100644 --- a/Documentation/arch/x86/tdx.rst +++ b/Documentation/arch/x86/tdx.rst @@ -142,13 +142,6 @@ but depends on the BIOS to behave correctly. Note TDX works with CPU logical online/offline, thus the kernel still allows to offline logical CPU and online it again. =20 -Kexec() -~~~~~~~ - -TDX host support currently lacks the ability to handle kexec. For -simplicity only one of them can be enabled in the Kconfig. This will be -fixed in the future. - Erratum ~~~~~~~ =20 @@ -171,6 +164,13 @@ If the platform has such erratum, the kernel prints ad= ditional message in machine check handler to tell user the machine check may be caused by kernel bug on TDX private memory. =20 +Kexec +~~~~~~~ + +Currently kexec doesn't work on the TDX platforms with the aforementioned +erratum. It fails when loading the kexec kernel image. Otherwise it +works normally. + Interaction vs S3 and deeper states ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20 --=20 2.50.1