X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=cpu-exec-common.c;h=e81da276bb0cd78ab2c655f60e7a6001ab8161fd;hb=37c4a85cd256a51c5f58ee7e531f25f0e89b2c87;hp=0504a9457b38b67d532f1a2c32e2f04c9bf4d648;hpb=30f3dda24b2a4cd30f8fbf984ab08ef08eaf5020;p=mirror_qemu.git diff --git a/cpu-exec-common.c b/cpu-exec-common.c index 0504a9457b..e81da276bb 100644 --- a/cpu-exec-common.c +++ b/cpu-exec-common.c @@ -35,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