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

From: Borislav Petkov
Date: Tue Feb 01 2022 - 08:02:50 EST


On Fri, Jan 28, 2022 at 11:17:23AM -0600, Brijesh Singh wrote:
> From: Tom Lendacky <thomas.lendacky@xxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Tom Lendacky <thomas.lendacky@xxxxxxx>
> Signed-off-by: Brijesh Singh <brijesh.singh@xxxxxxx>
> ---
> 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@xxxxxxx

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette