[PATCHv9 08/17] x86/tdx: Account shared memory

Huang, Kai kai.huang at intel.com
Tue Mar 26 03:30:27 PDT 2024


On Mon, 2024-03-25 at 12:39 +0200, Kirill A. Shutemov wrote:
> The kernel will convert all shared memory back to private during kexec.
> The direct mapping page tables will provide information on which memory
> is shared.
> 
> It is extremely important to convert all shared memory. If a page is
> missed, it will cause the second kernel to crash when it accesses it.
> 
> Keep track of the number of shared pages. This will allow for
> cross-checking against the shared information in the direct mapping and
> reporting if the shared bit is lost.
> 
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov at linux.intel.com>
> ---
> 

Reviewed-by: Kai Huang <kai.huang at intel.com>


More information about the kexec mailing list