Message ID | 20171106105737.fkv6hah4ynugyzym@pd.tnic (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 11/06/2017 04:57 AM, Borislav Petkov wrote: ... > > Just get rid of that silly function: > Sure, will do.
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 1410e6b7e8d8..5f5c3ddad139 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -1187,17 +1187,12 @@ static __init int svm_hardware_setup(void) return r; } -static __exit void sev_hardware_unsetup(void) -{ - if (svm_sev_enabled()) - kfree(sev_asid_bitmap); -} - static __exit void svm_hardware_unsetup(void) { int cpu; - sev_hardware_unsetup(); + if (svm_sev_enabled()) + kfree(sev_asid_bitmap); for_each_possible_cpu(cpu) svm_cpu_uninit(cpu);