Re: [PATCH v13 18/22] x86/virt/tdx: Keep TDMRs when module initialization is successful

From: Edgecombe, Rick P
Date: Fri Sep 15 2023 - 19:11:40 EST


On Sat, 2023-08-26 at 00:14 +1200, Kai Huang wrote:
> On the platforms with the "partial write machine check" erratum, the
> kexec() needs to convert all TDX private pages back to normal before
> booting to the new kernel.  Otherwise, the new kernel may get
> unexpected
> machine check.
>
> There's no existing infrastructure to track TDX private pages. 
> Change
> to keep TDMRs when module initialization is successful so that they
> can
> be used to find PAMTs.
>
> Signed-off-by: Kai Huang <kai.huang@xxxxxxxxx>

Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>