From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 4D513329E5B for ; Mon, 26 Jan 2026 10:42:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769424134; cv=none; b=eo0vp94Jv9Db9GKuv67VgIvpau56dbk8gxJr2Uy+hUoP1v5zo0iqOxRyxbWi5N0LwhR/xyb/albrl7Nay2unF6zMSYYG6Ztd66Ce68vlVnM1DgZP4epueP8xOm6ufvHHOTTj5FTpjk04lkhaNJT8MBcDdy95xfzbIAQUEnc491M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769424134; c=relaxed/simple; bh=Sqda4WcgVYeoXlyqk1sjfMryqHnxe7/HsO4wgJuPIoE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Odm7LrbUInuK4//pCSHwYqWuEu/xVu2kzVvyK+HFkGPp3nGdJIQrJG3Ac4Yl3FBlY/sVp/MF5tRg8RNX8G4jDvX96z9q1u/5B43XVZUPZWiYQ8J+RTdTVlPDIPHVcT0F+6uZpKdjF+LNtEmfA9QCJQ4sK9nAWTDnBHn94nXxg9M= 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=G8TX+pIj; arc=none smtp.client-ip=192.198.163.14 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="G8TX+pIj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769424131; x=1800960131; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Sqda4WcgVYeoXlyqk1sjfMryqHnxe7/HsO4wgJuPIoE=; b=G8TX+pIji62jg7xIaG9ztWYUZwFoRFHycMqJW+9zJgJZTCqcWZfrNgMh Ti7PPXEdLiud32vnBWzbsIx/2tQLOr3S0XS7nJScR3pOKGkj+jHUkCyxj LQImjsPrphQ+kvOvQNYVS+gkiZP4/QlLeWeMJmFSQZvsr2msO5ASxO9LW pRs2ZME3KkSHjZfY054JF670hllz6lakiNCcDiN2yqS3LjovQiXc6CK5d JhMUOvTWm7ZLFEm6k+B58FF4sD0nT5YmgH/Yc/vqjXoq8PDImp278sgog WuRFMV9jY3rzMsf5ur3SRrswL6usTS5Z//dMvHrh3u0P1WTx1b0Ipf817 w==; X-CSE-ConnectionGUID: /hmQeK0gSwGCmYS2WOY90Q== X-CSE-MsgGUID: iVnpffJwRjWrA8vxmZLN7g== X-IronPort-AV: E=McAfee;i="6800,10657,11682"; a="70654703" X-IronPort-AV: E=Sophos;i="6.21,254,1763452800"; d="scan'208";a="70654703" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2026 02:42:10 -0800 X-CSE-ConnectionGUID: cWLhThS4SNua6Tv7jFiq9w== X-CSE-MsgGUID: 1NsHtn2iTOiTvVA2oMaTqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,254,1763452800"; d="scan'208";a="212507611" Received: from krybak-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.55]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2026 02:42:03 -0800 Date: Mon, 26 Jan 2026 12:42:00 +0200 From: Tony Lindgren To: Chao Gao Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, reinette.chatre@intel.com, ira.weiny@intel.com, kai.huang@intel.com, dan.j.williams@intel.com, yilun.xu@linux.intel.com, sagis@google.com, vannapurve@google.com, paulmck@kernel.org, nik.borisov@suse.com, zhenzhong.duan@intel.com, seanjc@google.com, rick.p.edgecombe@intel.com, kas@kernel.org, dave.hansen@linux.intel.com, vishal.l.verma@intel.com, Farrah Chen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: Re: [PATCH v3 16/26] x86/virt/seamldr: Shut down the current TDX module Message-ID: References: <20260123145645.90444-1-chao.gao@intel.com> <20260123145645.90444-17-chao.gao@intel.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260123145645.90444-17-chao.gao@intel.com> On Fri, Jan 23, 2026 at 06:55:24AM -0800, Chao Gao wrote: > TDX Module updates request shutting down the existing TDX module. > During this shutdown, the module generates hand-off data, which captures > the module's states essential for preserving running TDs. The new TDX > Module can utilize this hand-off data to establish its states. > > Invoke the TDH_SYS_SHUTDOWN SEAMCALL on one CPU to perform the shutdown. > This SEAMCALL requires a hand-off module version. Use the module's own > hand-off version, as it is the highest version the module can produce and > is more likely to be compatible with new modules as new modules likely have > higher hand-off version. Reviewed-by: Tony Lindgren