kvm tools: Exit VCPU thread only when SIGKVMEXIT is received
commitdd2e19aee64ad93d170fc7f285c7072aa4e360a0
authorSasha Levin <levinsasha928@gmail.com>
Thu, 26 May 2011 14:25:46 +0000 (26 17:25 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 26 May 2011 19:03:22 +0000 (26 22:03 +0300)
treeb717b21a78653df984c9ec9171b985344b7af3fe
parent4fd893b04043f13e2f2f7165128dcf88aa1a7f13
kvm tools: Exit VCPU thread only when SIGKVMEXIT is received

Currently the VCPU loop would exit when the thread received any signal.

Change behaviour to exit only when SIGKVMEXIT is received. This change
prevents from the guest to terminate when unrelated signals are processed
by the thread (for example, when attaching a debugger).

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