> -void cpu_stop_current(void) > -{ > - if (current_cpu) { > - qemu_cpu_stop(current_cpu, true); > - } > -}
Btw. this does not compile as this is used also in vl.c > - > 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); > return 0; > } > > -- Thanks, David / dhildenb