Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Dov Murik
On 05/09/2021 16:58, Brijesh Singh wrote: > Hi Dov, > > On 9/5/21 2:07 AM, Dov Murik wrote: > ... >> >>> >>> uint64_t >>> @@ -1074,6 +1083,7 @@ int sev_kvm_init(ConfidentialGuestSupport *cgs, Error >>> **errp) >>> uint32_t ebx; >>> uint32_t host_cbitpos; >>> struct sev_user_d

Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Dov Murik
On 05/09/2021 17:05, Brijesh Singh wrote: > > On 9/5/21 4:19 AM, Dov Murik wrote: >> >> On 27/08/2021 1:26, Michael Roth wrote: >>> From: 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

Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Brijesh Singh
On 9/5/21 4:19 AM, Dov Murik wrote: > > On 27/08/2021 1:26, Michael Roth wrote: >> From: 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 allocates a new ASID f

Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Brijesh Singh
Hi Dov, On 9/5/21 2:07 AM, Dov Murik wrote: ... > >> >> uint64_t >> @@ -1074,6 +1083,7 @@ int sev_kvm_init(ConfidentialGuestSupport *cgs, Error >> **errp) >> uint32_t ebx; >> uint32_t host_cbitpos; >> struct sev_user_data_status status = {}; >> +void *init_args = NULL; >>

Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Dov Murik
On 27/08/2021 1:26, Michael Roth wrote: > From: 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 allocates a new ASID from the SNP pool and calls the > firmware t

Re: [RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-09-05 Thread Dov Murik
Hi Michael, On 27/08/2021 1:26, Michael Roth wrote: > From: 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 allocates a new ASID from the SNP pool and calls the >

[RFC PATCH v2 04/12] i386/sev: initialize SNP context

2021-08-26 Thread Michael Roth
From: 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 allocates a new ASID from the SNP pool and calls the firmware to initialize the all the resources. Signed-off-by: Bri