]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Exit properly on SMP guests
authorSasha Levin <levinsasha928@gmail.com>
Thu, 19 May 2011 12:28:30 +0000 (15:28 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 19 May 2011 19:11:20 +0000 (22:11 +0300)
commit18dd231eec5f0745e3c35de631ada01175c3254d
treee44a6fa86df027153cb39901ab2eba77d7f6a50a
parent230b9bc57c8085d228fbd217373821f59ff38585
kvm tools: Exit properly on SMP guests

When shutting down SMP guests only VCPU #0 will receive
a KVM_EXIT_SHUTDOWN. Waiting for all VCPU threads to exit
causes them to hang.

Instead, notify all VCPU threads once VCPU #0 thread is terminated
so they could also stop properly.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/kvm.h
tools/kvm/kvm-cpu.c
tools/kvm/kvm-run.c