From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 934D13CE4B6 for ; Thu, 19 Mar 2026 13:33:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773927194; cv=none; b=pGOU5OmG65QhtB0l1ZRDeSnKnnGWrWg1VIPTwudTqf24qeG+5/Usk5rZ5kTLu6mUzrSDLq83SY2DBqlpkVj2VWLUNL5iAhla1VHmc1mnvEPevbsGG7QpuhRSMzPuSbQvW20kID0IfneNElKKrKfbnW6QSgEG1lfIseGI4yAl0hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773927194; c=relaxed/simple; bh=Vfe8ULqyqHmbMNbiIFw9HUotmHZ3Q6rw6hBAZNjuGIY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tvHFG5mZ9PnX68ZPEa2it2d9eldtJrAsi8SKy4yMhDnndNC9IO85ysbDU4qEsTm4H8S5lZZ312WBJUB4JNJmXkXVFh47uOI2cPVucU8Pd5Rhb8ZIgBa/lOIxBnt08xXScFN2e0wK8PxBSotyS8YmLg0fmkdiSl1dtZm3sOtd1UI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jY0VnREG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jY0VnREG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87FC5C19424; Thu, 19 Mar 2026 13:33:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773927194; bh=Vfe8ULqyqHmbMNbiIFw9HUotmHZ3Q6rw6hBAZNjuGIY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jY0VnREGGWqnCuA0qMVcdH2o9OI2e6wc3jSDkCGj6NRGSYVRP0wACJyKJstLPecNm 0KiHXX7LwAsh10GOIuCj/k4vOdCVuCdWv1ARC/2ZSAymvOVlJivVefInsQio8x7knZ JRKf2Jt029X4bNwXDRvbSxcSc0dDJ/s8ef7rfPkdFzUJmMC0bRBvOrji3cWcnyLNUQ eAntlLtF43vRX69/DoPf+wkr94jjBNi9gP0nEjGOlqeLLkWLRc6w6zAhWoXXqyneun pTptLlmtxPvAKQxMCocepHvMu42y60avL8mSZD+qdaFGhKxSzDCQxUMaSgXTdW/NPu GMpGPkLRiEXlg== Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfauth.phl.internal (Postfix) with ESMTP id 5CA11F40068; Thu, 19 Mar 2026 09:33:12 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Thu, 19 Mar 2026 09:33:12 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeftdejudegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepmfhirhihlhcu ufhhuhhtshgvmhgruhcuoehkrghssehkvghrnhgvlhdrohhrgheqnecuggftrfgrthhtvg hrnhepueeijeeiffekheeffffftdekleefleehhfefhfduheejhedvffeluedvudefgfek necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhirh hilhhlodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduieduudeivdeiheeh qddvkeeggeegjedvkedqkhgrsheppehkvghrnhgvlhdrohhrghesshhhuhhtvghmohhvrd hnrghmvgdpnhgspghrtghpthhtohephedtpdhmohguvgepshhmthhpohhuthdprhgtphht thhopegthhgrohdrghgrohesihhnthgvlhdrtghomhdprhgtphhtthhopehlihhnuhigqd hkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhig qdgtohgtoheslhhishhtshdrlhhinhhugidruggvvhdprhgtphhtthhopehkvhhmsehvgh gvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepsghinhgsihhnrdifuheslhhinhhu gidrihhnthgvlhdrtghomhdprhgtphhtthhopegurghnrdhjrdifihhllhhirghmshesih hnthgvlhdrtghomhdprhgtphhtthhopegurghvvgdrhhgrnhhsvghnsehlihhnuhigrdhi nhhtvghlrdgtohhmpdhrtghpthhtohepihhrrgdrfigvihhnhiesihhnthgvlhdrtghomh dprhgtphhtthhopehkrghirdhhuhgrnhhgsehinhhtvghlrdgtohhm X-ME-Proxy: Feedback-ID: i10464835:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Mar 2026 09:33:09 -0400 (EDT) Date: Thu, 19 Mar 2026 13:33:04 +0000 From: Kiryl Shutsemau To: Chao Gao Cc: linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, kvm@vger.kernel.org, binbin.wu@linux.intel.com, dan.j.williams@intel.com, dave.hansen@linux.intel.com, ira.weiny@intel.com, kai.huang@intel.com, nik.borisov@suse.com, paulmck@kernel.org, pbonzini@redhat.com, reinette.chatre@intel.com, rick.p.edgecombe@intel.com, sagis@google.com, seanjc@google.com, tony.lindgren@linux.intel.com, vannapurve@google.com, vishal.l.verma@intel.com, yilun.xu@linux.intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH v5 14/22] x86/virt/seamldr: Do TDX per-CPU initialization after updates Message-ID: References: <20260315135920.354657-1-chao.gao@intel.com> <20260315135920.354657-15-chao.gao@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260315135920.354657-15-chao.gao@intel.com> On Sun, Mar 15, 2026 at 06:58:34AM -0700, Chao Gao wrote: > After installing the new TDX module, each CPU needs to be initialized > again to make the CPU ready to run any other SEAMCALLs. So, call > tdx_cpu_enable() on all CPUs. > > Signed-off-by: Chao Gao > Reviewed-by: Xu Yilun > Reviewed-by: Tony Lindgren > Reviewed-by: Kai Huang Reviewed-by: Kiryl Shutsemau (Meta) -- Kiryl Shutsemau / Kirill A. Shutemov