Commit df646dfd authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Blue Swirl
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 94ad5b00
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }