Don't wait for aio completion signals outside vcpu > 0
commit4b695d6cd3b7e38999aee47e64de0f5f8064706b
authorAvi Kivity <avi@qumranet.com>
Wed, 23 Jan 2008 11:38:53 +0000 (23 13:38 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 23 Jan 2008 11:38:53 +0000 (23 13:38 +0200)
tree198a43320adefae22bf78bdb6eefdd84c355a7b7
parentc777388d47fe6dd87bc4683f608db11321118350
Don't wait for aio completion signals outside vcpu > 0

as vcpu 0 receives all signals, if another vcpu waits for aio completion, it
will hang as the signal will never be received.  fix by waiting on a condition
variable, and signaling that variable from vcpu 0 when the completion signal
is received.

this fixes hangs with -smp 2 -snapshot and qcow2.

Signed-off-by: Avi Kivity <avi@qumranet.com>
block-raw-posix.c
qemu-kvm.c
qemu-kvm.h