qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH] target-arm: protect cpu_exclusive_*.


From: Frederic Konrad
Subject: Re: [Qemu-devel] [RFC PATCH] target-arm: protect cpu_exclusive_*.
Date: Wed, 17 Dec 2014 11:27:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 16/12/2014 17:37, Peter Maydell wrote:
On 16 December 2014 at 09:13,  <address@hidden> wrote:
From: KONRAD Frederic <address@hidden>

This adds a lock to avoid multiple exclusive access at the same time in case of
TCG multithread.
Hi Peter,

This feels to me like it's not really possible to review on
its own, since you can't see how it fits into the design of
the rest of the multithreading support.
true the only thing we observe is that it didn't change anything right now.

The other approach here rather than having a pile of mutexes
in the target-* code would be to have TCG IR support for
"begin critical section"/"end critical section". Then you
could have the main loop ensure that no other CPU is running
at the same time as the critical-section code. (linux-user
already has an ad-hoc implementation of this for the
exclusives.)

-- PMM

What do you mean by TCG IR?

Thanks,
Fred



reply via email to

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