qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH V7 18/19] mttcg: signal the associated cpu a


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH V7 18/19] mttcg: signal the associated cpu anyway.
Date: Mon, 10 Aug 2015 17:51:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0


On 10/08/2015 17:27, address@hidden wrote:
> diff --git a/cpus.c b/cpus.c
> index 2c5ca72..f61530c 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -674,8 +674,7 @@ static void cpu_signal(int sig)
>          cpu_exit(current_cpu);
>      }
>  
> -    /* FIXME: We might want to check if the cpu is running? */
> -    tcg_thread_cpu->exit_request = true;
> +    cpu_exit(tcg_thread_cpu);

If you do this, you can remove the first "if" too, because current_cpu
is always either tcg_thread_cpu or NULL.

I think it's okay to do that and squash this patch into patch 11 as well.

Paolo



reply via email to

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