> int vm_stop(RunState state) > { > if (qemu_in_vcpu_thread()) { > @@ -1818,7 +1809,8 @@ int vm_stop(RunState state) > * FIXME: should not return to device code in case > * vm_stop() has been requested. > */ > - cpu_stop_current(); > + qemu_cpu_stop(current_cpu); > + cpu_exit(current_cpu);
We're doing the cpu_exit() now after the broadcast, is this ok? Also we drop the check for current_cpu, I assume this is also ok. > return 0; > } > -- Thanks, David / dhildenb