Hi Kirill, ...
The approach lowers boot time substantially. Boot to shell is ~2.5x faster for 4G TDX VM and ~4x faster for 64G. Patches 1-6/7 are generic and don't have any dependencies on TDX. They should serve AMD SEV needs as well. TDX-specific code isolated in the last patch. This patch requires the core TDX patchset which is currently under review.
I can confirm that this series works for the SEV-SNP guest. I was able to hook the SEV-SNP page validation vmgexit (similar to the TDX patch#7) and have verified that the guest kernel successfully accepted all the memory regions marked unaccepted by the EFI boot loader. Not a big deal, but can I ask you to include me in Cc on the future series; I should be able to do more testing on SNP hardware and provide my Test-by tag.
~ Brijesh