On 3/26/2024 9:01 AM, Tom Lendacky wrote: > On 3/25/24 16:36, Pavan Kumar Paluri wrote: >> KUT's UEFI tests don't currently have support for page allocation. >> SEV-ES/SNP tests will need this later, so the support for page >> allocation is provided via setup_vm(). >> >> SEV-ES/SNP guest uses GHCB page to communicate with the host. Such a >> page should remain unencrypted (its c-bit should be unset). Therefore, >> call setup_ghcb_pte() in the path of setup_vm() to make sure c-bit of >> GHCB's pte is unset. > > This looks like it should be 2 separate patches. One for supporting page > allocation and one for setting the GHCB page attributes. > Sure, I will separate this into 2 patches, the GHCB page attribute patch followed by the page allocation support. Thanks, Pavan > Thanks, > Tom >