Re: [PATCH 01/13] KVM: SVM: Free sev_asid_bitmap during init if SEV setup fails

2021-01-11 Thread Sean Christopherson
On Mon, Jan 11, 2021, Tom Lendacky wrote: > On 1/8/21 6:47 PM, Sean Christopherson wrote: > > Free sev_asid_bitmap if the reclaim bitmap allocation fails, othwerise > > it will be leaked as sev_hardware_teardown() frees the bitmaps if and > > only if SEV is fully enabled (which obviously isn't the

Re: [PATCH 01/13] KVM: SVM: Free sev_asid_bitmap during init if SEV setup fails

2021-01-11 Thread Tom Lendacky
On 1/8/21 6:47 PM, Sean Christopherson wrote: Free sev_asid_bitmap if the reclaim bitmap allocation fails, othwerise it will be leaked as sev_hardware_teardown() frees the bitmaps if and only if SEV is fully enabled (which obviously isn't the case if SEV setup fails). The svm_sev_enabled() func

[PATCH 01/13] KVM: SVM: Free sev_asid_bitmap during init if SEV setup fails

2021-01-08 Thread Sean Christopherson
Free sev_asid_bitmap if the reclaim bitmap allocation fails, othwerise it will be leaked as sev_hardware_teardown() frees the bitmaps if and only if SEV is fully enabled (which obviously isn't the case if SEV setup fails). Fixes: 33af3a7ef9e6 ("KVM: SVM: Reduce WBINVD/DF_FLUSH invocations") Cc: To