qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [CFT PATCH 06/12] exit round-robin vcpu loop if cpu->stoppe


From: Paolo Bonzini
Subject: [Qemu-devel] [CFT PATCH 06/12] exit round-robin vcpu loop if cpu->stopped is true
Date: Tue, 8 Feb 2011 18:18:23 +0100

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 <address@hidden>
---
 cpus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpus.c b/cpus.c
index c1d0ceb..5b13961 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1061,7 +1061,7 @@ bool cpu_exec_all(void)
             if (r == EXCP_DEBUG) {
                 break;
             }
-        } else if (env->stop) {
+        } else if (env->stop || env->stopped) {
             break;
         }
     }
-- 
1.7.3.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]