There is a TB lock in the cpu-exec.c. It is held before a vcpu is trying to find the next tb it is trying to execute. I am wondering what this lock is for. Currently, qemu is time multiplexing on a host cpu to emulate smp. No other vcpu can be running while the tb lookup/translation is performed.
Thanks Xin