[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qom/cpu: Remove cpu->exit_request from reset st
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] qom/cpu: Remove cpu->exit_request from reset state |
Date: |
Sat, 15 Feb 2014 15:42:56 +0000 |
On 13 February 2014 05:07, <address@hidden> wrote:
> From: "Edgar E. Iglesias" <address@hidden>
>
> cpu->exit_request is part of the execution environment and should
> not be cleared when a CPU resets.
>
> Otherwise, we might deadlock QEMU if a CPU resets while there is
> I/O going on.
>
> Signed-off-by: Edgar E. Iglesias <address@hidden>
> ---
> qom/cpu.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/qom/cpu.c b/qom/cpu.c
> index 9d62479..40d82dd 100644
> --- a/qom/cpu.c
> +++ b/qom/cpu.c
> @@ -195,7 +195,6 @@ static void cpu_common_reset(CPUState *cpu)
> log_cpu_state(cpu, cc->reset_dump_flags);
> }
>
> - cpu->exit_request = 0;
> cpu->interrupt_request = 0;
> cpu->current_tb = NULL;
> cpu->halted = 0;
This looks kind of odd to me. What's the situation you see where
this matters -- is the CPU resetting itself, or is some other device
in another thread triggering the CPU reset? TCG or KVM?
thanks
-- PMM