Re: [RFC PATCH 3/6] i386/sev: initialize SNP context

2021-07-15 Thread Brijesh Singh
On 7/15/21 4:32 AM, Dov Murik wrote: Just making sure I understand: * sev_enabled() returns true for SEV or newer (SEV or SEV-ES or SEV-SNP). * sev_es_enabled() returns true for SEV-ES or newer (SEV-ES or SEV-SNP). * sev_snp_enabled() returns true for SEV-SNP or newer (currently only S

Re: [RFC PATCH 3/6] i386/sev: initialize SNP context

2021-07-15 Thread Dov Murik
Hi Brijesh, On 10/07/2021 0:55, Brijesh Singh wrote: > When SEV-SNP is enabled, the KVM_SNP_INIT command is used to initialize > the platform. The command checks whether SNP is enabled in the KVM, if > enabled then it allocate a new ASID from the SNP pool and calls the s/allocate/allocates/ > fi

[RFC PATCH 3/6] i386/sev: initialize SNP context

2021-07-09 Thread Brijesh Singh
When SEV-SNP is enabled, the KVM_SNP_INIT command is used to initialize the platform. The command checks whether SNP is enabled in the KVM, if enabled then it allocate a new ASID from the SNP pool and calls the firmware to initialize the all the resources. Signed-off-by: Brijesh Singh --- target