kvm: consume internal signal with sigtimedwait
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 17 Feb 2010 22:14:42 +0000 (20:14 -0200)
committerAvi Kivity <avi@redhat.com>
Mon, 22 Feb 2010 08:58:33 +0000 (10:58 +0200)
commitf67bd53f1df0f0a475a72218feda9be979896005
treeea13b44d105ea50dd1f85ccade0f851481a905e6
parent49b274428f7abffe028859f0755116195a6f647d
kvm: consume internal signal with sigtimedwait

Change the way the internal qemu signal, used for communication between
iothread and vcpus, is handled.

Block and consume it with sigtimedwait on the outer vcpu loop, which
allows more precise timing control.

Change from standard signal (SIGUSR1) to real-time one, so multiple
signals are not collapsed.

Set the signal number on KVM's in-kernel allowed sigmask.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-all.c
kvm.h
vl.c