do not enter vcpu again if it was stopped during IO
commit92af0ed74e86e6f0867df53763d3af05005db73b
authorGleb Natapov <gleb@redhat.com>
Mon, 21 Jun 2010 09:01:52 +0000 (21 12:01 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 23 Jun 2010 08:22:00 +0000 (23 11:22 +0300)
treee27a25f3a874b9644bb670c43f7070d1739d8c5f
parent01718e3d95e07e111cd3335928475a1ce2fbe430
do not enter vcpu again if it was stopped during IO

To prevent reentering vcpu after IO completion it is not enough
to set env->stopped since it is checked only in main loop but control
will not get there until next non-IO exit since kvm_run() will reenter
vcpu to complete IO instruction. Solve this by sending self-signal to
request exit after IO instruction completion.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm.c
vl.c