Re: [PATCH 10/13] x86/tdx: Convert shared memory back to private on kexec

From: Kirill A. Shutemov
Date: Mon Oct 09 2023 - 09:35:21 EST


On Sun, Oct 08, 2023 at 04:35:27PM +0800, Baoquan He wrote:
> On 10/05/23 at 04:13pm, Kirill A. Shutemov wrote:
> > TDX guests allocate shared buffers to perform I/O. It is done by
> > allocating pages normally from the buddy allocator and converting them
> > to shared with set_memory_decrypted().
> >
> > The target kernel has no idea what memory is converted this way. It only
> ~~~~~~~~~~~~~
> > sees E820_TYPE_RAM.
>
> I finally realized it means the 2nd kernel of kexec rebooting. Maybe we
> can call it 2nd kernel always, it works for both kexec and kdump
> jumping.

Okay. Will fix. I am new to kexec and I don't know proper terminology :)

--
Kiryl Shutsemau / Kirill A. Shutemov