]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cpu-exec-common.c
virtio: fix vring_align() on 64-bit windows
[mirror_qemu.git] / cpu-exec-common.c
index e2bc0533721abe1650e567694d36602b06df6d7c..e81da276bb0cd78ab2c655f60e7a6001ab8161fd 100644 (file)
@@ -23,8 +23,6 @@
 #include "exec/exec-all.h"
 #include "exec/memory-internal.h"
 
-bool exit_request;
-
 /* exit the current TB, but without causing any exception to be raised */
 void cpu_loop_exit_noexc(CPUState *cpu)
 {
@@ -37,7 +35,7 @@ void cpu_loop_exit_noexc(CPUState *cpu)
 #if defined(CONFIG_SOFTMMU)
 void cpu_reloading_memory_map(void)
 {
-    if (qemu_in_vcpu_thread()) {
+    if (qemu_in_vcpu_thread() && current_cpu->running) {
         /* The guest can in theory prolong the RCU critical section as long
          * as it feels like. The major problem with this is that because it
          * can do multiple reconfigurations of the memory map within the