exit round-robin vcpu loop if cpu->stopped is true

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>
This commit is contained in:
Paolo Bonzini 2011-03-12 17:43:58 +01:00 committed by Blue Swirl
parent 94ad5b00a3
commit df646dfd56
1 changed files with 1 additions and 1 deletions

2
cpus.c
View File

@ -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;
}
}