On Mon, Nov 21, 2011 at 10:11:37AM +0000, Peter Maydell wrote:
> On 21 November 2011 10:07, Alexander Graf <ag...@suse.de> wrote:
> > On 21.11.2011, at 10:59, Peter Maydell wrote:
> >> You can hit this bug even single-threaded or in system mode:
> >> it's just that aggressively multi-threaded user apps are the
> >> easiest way to trigger it. So I don't think we can ever use
> >> the tb-unlinking code safely.
> >
> > Not sure I understand. I thought it's a race between multiple
> >threads trying to chain/unchain TBs at the same time? How can
> > that happen in system or single-threaded mode?
> 
> It's a race between (a) a thread executing code and (b) any
> other thread or signal handler that calls cpu_exit(). So (b)
> can be the IO thread, or the linux-user host_signal_handler().

  Would it be a good idea to write this as a comment about
cpu_unlink_tb? 

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj

Reply via email to