[PATCHv8 08/17] x86/tdx: Account shared memory
Huang, Kai
kai.huang at intel.com
Tue Feb 27 15:12:20 PST 2024
On 28/02/2024 10:24 am, 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