Re: [PATCH 06/12] KVM: mark kvm-buses as empty once they were destroyed

2015-03-14 Thread Christoffer Dall
On Fri, Mar 13, 2015 at 04:10:06PM +, Andre Przywara wrote: In kvm_destroy_vm() we call kvm_io_bus_destroy() pretty early, especially before calling kvm_arch_destroy_vm(). To avoid unregistering devices from the already destroyed bus, let's mark the bus with NULL to let other users know it

[PATCH 06/12] KVM: mark kvm-buses as empty once they were destroyed

2015-03-13 Thread Andre Przywara
In kvm_destroy_vm() we call kvm_io_bus_destroy() pretty early, especially before calling kvm_arch_destroy_vm(). To avoid unregistering devices from the already destroyed bus, let's mark the bus with NULL to let other users know it has been destroyed already. This avoids a crash on a VM shutdown