Prevent abortion on multiple VCPU kicks
commitaa2c364b4cf2fae4d9c8acf53ee4436ed533902d
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 1 Feb 2011 21:15:42 +0000 (1 22:15 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 14 Feb 2011 14:39:44 +0000 (14 12:39 -0200)
tree3b9ecc989e78484282012627d13a4a954a30c0ae
parent8668f61d20eac971d116ebbe8436b4ae963884a8
Prevent abortion on multiple VCPU kicks

If we call qemu_cpu_kick more than once before the target was able to
process the signal, pthread_kill will fail, and qemu will abort. Prevent
this by avoiding the redundant signal.

This logic can be found in qemu-kvm as well.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
cpu-defs.h
cpus.c