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

Paolo Bonzini pbonzini at redhat.com
Tue Sep 28 09:48:20 PDT 2021


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 at redhat.com>
> Signed-off-by: Juergen Gross <jgross at suse.com>

Queued this one already, thanks.

Paolo




More information about the linux-arm-kernel mailing list