qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-kvm vs. qemu: Terminate cpu loop on reset?
@ 2011-01-07 15:57 Jan Kiszka
  2011-01-07 16:53 ` [Qemu-devel] " Gleb Natapov
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2011-01-07 15:57 UTC (permalink / raw)
  To: kvm; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

Hi,

does anyone immediately know if this hunk from vl.c

@@ -1278,6 +1197,10 @@ void qemu_system_reset_request(void)
     } else {
         reset_requested = 1;
     }
+    if (cpu_single_env) {
+        cpu_single_env->stopped = 1;
+        cpu_exit(cpu_single_env);
+    }
     qemu_notify_event();
 }

is (semantically) relevant for upstream as well? IIUC, it ensures that
the kvm cpu loop is not continued if an IO access called into
qemu_system_reset_request.

If yes, then it would be a good time to push a patch: these bits will
fall to dust on next merge from upstream (vl.c no longer has access to
the cpu state).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-08  9:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-07 15:57 [Qemu-devel] qemu-kvm vs. qemu: Terminate cpu loop on reset? Jan Kiszka
2011-01-07 16:53 ` [Qemu-devel] " Gleb Natapov
2011-01-07 16:59   ` Jan Kiszka
2011-01-07 17:16     ` Gleb Natapov
2011-01-07 17:30       ` Jan Kiszka
2011-01-07 17:53         ` Gleb Natapov
2011-01-07 18:24           ` Jan Kiszka
2011-01-07 18:32             ` Jan Kiszka
2011-01-07 19:10             ` Gleb Natapov
2011-01-07 19:33               ` Jan Kiszka
2011-01-07 21:19                 ` Gleb Natapov
2011-01-08  9:12                   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).