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

2024-01-29 Thread Kirill A. Shutemov
On Mon, Jan 29, 2024 at 07:09:37AM -0600, Kalra, Ashish wrote: > Hello Kirill, > > On 1/29/2024 4:36 AM, Kirill A. Shutemov wrote: > > On Mon, Jan 29, 2024 at 04:24:09AM -0600, Kalra, Ashish wrote: > > > In case of SNP and crash/kdump case, we need to prevent the boot_ghcb > > > being > > >

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

2024-01-29 Thread Kalra, Ashish
Hello Kirill, On 1/29/2024 4:36 AM, Kirill A. Shutemov wrote: On Mon, Jan 29, 2024 at 04:24:09AM -0600, Kalra, Ashish wrote: In case of SNP and crash/kdump case, we need to prevent the boot_ghcb being converted to shared (in snp_kexec_unshare_mem()) as the boot_ghcb is required to handle all

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

2024-01-29 Thread Kirill A. Shutemov
On Mon, Jan 29, 2024 at 04:24:09AM -0600, Kalra, Ashish wrote: > In case of SNP and crash/kdump case, we need to prevent the boot_ghcb being > converted to shared (in snp_kexec_unshare_mem()) as the boot_ghcb is > required to handle all I/O for disabling IO-APIC/lapic, hpet, etc., as the >

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

2024-01-29 Thread Kalra, Ashish
Hello Kirill, On 1/24/2024 6:55 AM, 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 second kernel has no idea what memory is converted