Re: [PATCH v8 10/40] x86/compressed: Register GHCB memory when SEV-SNP is active

From: Venu Busireddy
Date: Mon Jan 03 2022 - 14:54:56 EST


On 2021-12-10 09:43:02 -0600, Brijesh Singh wrote:
> The SEV-SNP guest is required by the GHCB spec to register the GHCB's
> Guest Physical Address (GPA). This is because the hypervisor may prefer
> that a guest use a consistent and/or specific GPA for the GHCB associated
> with a vCPU. For more information, see the GHCB specification section
> "GHCB GPA Registration".
>
> If hypervisor can not work with the guest provided GPA then terminate the
> guest boot.
>
> Signed-off-by: Brijesh Singh <brijesh.singh@xxxxxxx>

Reviewed-by: Venu Busireddy <venu.busireddy@xxxxxxxxxx>

> ---
> arch/x86/boot/compressed/sev.c | 4 ++++
> arch/x86/include/asm/sev-common.h | 13 +++++++++++++
> arch/x86/kernel/sev-shared.c | 16 ++++++++++++++++
> 3 files changed, 33 insertions(+)
>