Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-12 Thread Sean Christopherson
On Mon, Jan 11, 2021, Vitaly Kuznetsov wrote: > Tom Lendacky writes: > > > On 1/11/21 4:42 AM, Vitaly Kuznetsov wrote: > >> Sean Christopherson writes: > >> > >>> Unconditionally invoke sev_hardware_setup() when configuring SVM and > >>> handle clearing the module params/variable 'sev' and

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Vitaly Kuznetsov
Tom Lendacky writes: > On 1/11/21 4:42 AM, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> >>> Unconditionally invoke sev_hardware_setup() when configuring SVM and >>> handle clearing the module params/variable 'sev' and 'sev_es' in >>> sev_hardware_setup(). This allows making said

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Tom Lendacky
On 1/11/21 4:42 AM, Vitaly Kuznetsov wrote: Sean Christopherson writes: Unconditionally invoke sev_hardware_setup() when configuring SVM and handle clearing the module params/variable 'sev' and 'sev_es' in sev_hardware_setup(). This allows making said variables static within sev.c and

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: > Unconditionally invoke sev_hardware_setup() when configuring SVM and > handle clearing the module params/variable 'sev' and 'sev_es' in > sev_hardware_setup(). This allows making said variables static within > sev.c and reduces the odds of a

Re: [PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-11 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Unconditionally invoke sev_hardware_setup() when configuring SVM and > handle clearing the module params/variable 'sev' and 'sev_es' in > sev_hardware_setup(). This allows making said variables static within > sev.c and reduces the odds of a collision with guest

[PATCH 03/13] KVM: SVM: Move SEV module params/variables to sev.c

2021-01-08 Thread Sean Christopherson
Unconditionally invoke sev_hardware_setup() when configuring SVM and handle clearing the module params/variable 'sev' and 'sev_es' in sev_hardware_setup(). This allows making said variables static within sev.c and reduces the odds of a collision with guest code, e.g. the guest side of things has