qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user: call cpu_copy under clone_lock


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] linux-user: call cpu_copy under clone_lock
Date: Wed, 4 Apr 2018 12:20:40 +0100

On 4 April 2018 at 11:27, Alex Bennée <address@hidden> wrote:
> I'm wondering if it should be doing more. After all start/end_exclusive
> rely on the cpu list and that isn't updated on thread creation - and
> without that a bunch of other things fail like ld/st exclusive after
> your first new thread is spawned.

I think that is handled because creating a new thread calls
cpu_copy(), which creates a new CPU object, which adds itself
to the CPU list in its realize function (same as for system
emulation new CPU objects).

thanks
-- PMM



reply via email to

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