qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] qemu-kvm vs. qemu: Terminate cpu loop on reset?


From: Jan Kiszka
Subject: [Qemu-devel] qemu-kvm vs. qemu: Terminate cpu loop on reset?
Date: Fri, 07 Jan 2011 16:57:31 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]