]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Fix 'lkvm stop' when guest is pasued.
authorAsias He <asias.hejun@gmail.com>
Wed, 21 Dec 2011 13:47:10 +0000 (21:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Wed, 21 Dec 2011 20:31:55 +0000 (22:31 +0200)
commitc56875099528aa54eb28b5feb11935c4069b5835
tree2d8b72cd254cf234bd713b6437002f0c8cc20b24
parenta94b285501d9104e864d341c21728cb75080f285
kvm tools: Fix 'lkvm stop' when guest is pasued.

Currently, 'lkvm stop' can not stop a pasued guest becasue
guest is blocked on the pause_lock.

This patch fixes it by un-pausing the guest before stops it.

The pthread_kill() call is not needed.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-cpu.c