|
@@ -35,7 +35,7 @@ void cpu_loop_exit_noexc(CPUState *cpu)
|
|
#if defined(CONFIG_SOFTMMU)
|
|
#if defined(CONFIG_SOFTMMU)
|
|
void cpu_reloading_memory_map(void)
|
|
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
|
|
/* 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
|
|
* as it feels like. The major problem with this is that because it
|
|
* can do multiple reconfigurations of the memory map within the
|
|
* can do multiple reconfigurations of the memory map within the
|