[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*.
From: |
Frederic Konrad |
Subject: |
Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*. |
Date: |
Mon, 02 Feb 2015 09:31:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 29/01/2015 16:17, Peter Maydell wrote:
On 16 January 2015 at 17:19, <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.
Signed-off-by: KONRAD Frederic <address@hidden>
Hi Peter,
All the same comments I had on this patch earlier still apply:
* I think adding mutex handling code to all the target-*
frontends rather than providing facilities in common
code for them to use is the wrong approach
Ok we will fix that.
* You will fail to unlock the mutex if the ldrex or strex
takes a data abort
* This is making no attempt to learn from or unify with
the existing attempts at handling exclusives in linux-user.
When we've done this work we should have a single
mechanism for handling exclusives in a multithreaded
host environment which is used by both softmmu and useronly
configs
Can you point me to the existing attempts in linux-user?
Thanks,
Fred
thanks
-- PMM
- Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*.,
Frederic Konrad <=