]> xenbits.xensource.com Git - qemu-xen-4.2-testing.git/commitdiff
exit round-robin vcpu loop if cpu->stopped is true
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Mar 2011 16:43:58 +0000 (17:43 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Mar 2011 14:44:21 +0000 (14:44 +0000)
Sometimes vcpus are stopped directly without going through ->stop = 1.
Exit the VCPU execution loop in this case as well.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
cpus.c

diff --git a/cpus.c b/cpus.c
index c5743c4bd3b11b2f1b75c2d2e58e918e11bd5438..785a104b60502ea4073f9029ff247d33fa9b1d4b 100644 (file)
--- a/cpus.c
+++ b/cpus.c
@@ -1098,7 +1098,7 @@ bool cpu_exec_all(void)
                 cpu_handle_debug_exception(env);
                 break;
             }
-        } else if (env->stop) {
+        } else if (env->stop || env->stopped) {
             break;
         }
     }