On 12/02/2009 02:48 PM, Glauber Costa wrote:
+    if (env == qemu_get_current_env()) {

Will always be false for TCG + iothread. What's wrong with qemu_cpu_self(env)? It appears to do the same, and it would also make the whole thread-local storage stuff redundant.

If there are performance problems, you can fix them by using TLS for the KVM case and keeping the existing implementation for TCG; at which point you can just use __thread because KVM can assume Linux and hence a working __thread.

Paolo


Reply via email to