]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: Allocate memslots and buses before calling kvm_arch_init_vm
authorJim Mattson <jmattson@google.com>
Thu, 24 Oct 2019 23:03:26 +0000 (16:03 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2019 11:32:33 +0000 (13:32 +0200)
commit4fdf90f97626233bef851b1b6fe6bc6e0190869a
tree821962f16d7e52fa2ce92eb0a942390bb614d01e
parent3b264144fb3749c51c65db4d94f153afc27c02c5
kvm: Allocate memslots and buses before calling kvm_arch_init_vm

This reorganization will allow us to call kvm_arch_destroy_vm in the
event that kvm_create_vm fails after calling kvm_arch_init_vm.

Suggested-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c