Re: [PATCH v9 02/43] KVM: SVM: Create a separate mapping for the SEV-ES save area

Borislav Petkov
2022-02-01T13:02:50Z

On Fri, Jan 28, 2022 at 11:17:23AM -0600, Brijesh Singh wrote:
> From: Tom Lendacky <thomas.lendacky@amd.com>
>
> 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.
>
> Reviewed-by: Venu Busireddy <venu.busireddy@oracle.com>
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
> ---
> arch/x86/include/asm/svm.h | 87 +++++++++++++++++++++++++++++---------
> arch/x86/kvm/svm/sev.c | 24 +++++------
> arch/x86/kvm/svm/svm.h | 2 +-
> 3 files changed, 80 insertions(+), 33 deletions(-)

https://lore.kernel.org/r/Yc2jzOunYej4vwSc@zn.tnic

--
Regards/Gruss,
Boris.