qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 2/3] accel/tcg: split tcg_start_vcpu_thread


From: Claudio Fontana
Subject: Re: [PATCH v2 2/3] accel/tcg: split tcg_start_vcpu_thread
Date: Thu, 15 Oct 2020 14:33:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

On 10/14/20 10:08 PM, Richard Henderson wrote:
> On 10/14/20 12:23 PM, Claudio Fontana wrote:
>> +++ b/accel/tcg/tcg-cpus-mttcg.h
>> @@ -10,14 +10,4 @@
>>  #ifndef TCG_CPUS_MTTCG_H
>>  #define TCG_CPUS_MTTCG_H
>>  
>> -/*
>> - * Multi-threaded TCG
>> - *
>> - * In the multi-threaded case each vCPU has its own thread. The TLS
>> - * variable current_cpu can be used deep in the code to find the
>> - * current CPUState for a given thread.
>> - */
>> -
>> -void *tcg_cpu_thread_fn(void *arg);
>> -
>>  #endif /* TCG_CPUS_MTTCG_H */
> 
> Hum.  Do we really need to create these headers in the previous patch?  
> Because
> now we have an empty one.
> 
> Why not just put all of tcg-cpus-*.h into tcg-cpus.h?
> 
> Otherwise this looks ok.
> 
> 
> r~
> 

There are some symbols required between -icount, -rr, and -mttcg, and in 
particular in the -mttcg case, this requirement goes away after start_vcpu is 
also refactored.

Will take a look again, at the very least the mttcg.h should be removed 
completely.

Ciao,

Claudio



reply via email to

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