OSDN Git Service

kvm: svm: de-allocate svm_cpu_data for all cpus in svm_cpu_uninit()
authorJacob Xu <jacobhxu@google.com>
Thu, 3 Dec 2020 20:59:39 +0000 (12:59 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Dec 2020 08:47:58 +0000 (03:47 -0500)
commita2b2d4bf5076832339762556b816eec58ca38f77
tree8ca639b7b303bf01af423087725dd81325326908
parent0c55f867f0c96dff93d4e0b5973975d65afb26d8
kvm: svm: de-allocate svm_cpu_data for all cpus in svm_cpu_uninit()

The cpu arg for svm_cpu_uninit() was previously ignored resulting in the
per cpu structure svm_cpu_data not being de-allocated for all cpus.

Signed-off-by: Jacob Xu <jacobhxu@google.com>
Message-Id: <20201203205939.1783969-1-jacobhxu@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c