tweak qemu_notify_event
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Mar 2010 10:38:43 +0000 (11:38 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 17 Mar 2010 16:14:53 +0000 (11:14 -0500)
commita22156997ff646658f18621de37b91115c5648ee
treebdfa501458c886f32b06120dcb1ad2fddef733f8
parent82de4bf03a2baf4023fcf8a523bcd2c03ca4e70a
tweak qemu_notify_event

Instead of testing specially next_cpu in host_alarm_handler, just do
that in qemu_notify_event.  The idea is, if we are not running (or
not yet running) target CPU code, prepare things so that the execution
loop is exited asap; just make that clear.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c