Re: [PATCH v2 4/6] kvm: use kvfree() in kvm_arch_free_vm()

From: Paolo Bonzini
Date: Tue Sep 28 2021 - 12:48:37 EST


On 03/09/21 15:08, Juergen Gross wrote:
By switching from kfree() to kvfree() in kvm_arch_free_vm() Arm64 can
use the common variant. This can be accomplished by adding another
macro __KVM_HAVE_ARCH_VM_FREE, which will be used only by x86 for now.

Further simplification can be achieved by adding __kvm_arch_free_vm()
doing the common part.

Suggested-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Queued this one already, thanks.

Paolo