Re: [PATCH v8 17/40] KVM: SVM: Create a separate mapping for the SEV-ES save area

Venu Busireddy
2022-01-05T01:39:10Z

On 2021-12-10 09:43:09 -0600, Brijesh Singh wrote:
> The save area for SEV-ES/SEV-SNP guests, as used by the hardware, is
> different from the save area of a non SEV-ES/SEV-SNP guest.
>
> This is the first step in defining the multiple save areas to keep them
> separate and ensuring proper operation amongst the different types of
> guests. Create an SEV-ES/SEV-SNP save area and adjust usage to the new
> save area definition where needed.
>
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>

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

> ---
> arch/x86/include/asm/svm.h | 83 +++++++++++++++++++++++++++++---------
> arch/x86/kvm/svm/sev.c | 24 +++++------
> arch/x86/kvm/svm/svm.h | 2 +-
> 3 files changed, 77 insertions(+), 32 deletions(-)
>