]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: use kvfree() in kvm_arch_free_vm()
authorJuergen Gross <jgross@suse.com>
Fri, 3 Sep 2021 13:08:05 +0000 (15:08 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Oct 2021 07:44:57 +0000 (03:44 -0400)
commite9eb8319f73c22865c55917a09bd6dddcd3f89cd
tree8705db52e133751bb328249788eed2f4bbb52226
parent8b369ab060f76a6b5dfeb6238337f9127038171a
kvm: use kvfree() in kvm_arch_free_vm()

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@redhat.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-Id: <20210903130808.30142-5-jgross@suse.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c
include/linux/kvm_host.h