[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check t
From: |
Mark Burton |
Subject: |
Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX |
Date: |
Fri, 19 Jun 2015 09:40:01 +0200 |
> On 19 Jun 2015, at 09:31, Paolo Bonzini <address@hidden> wrote:
>
>
>
> On 19/06/2015 09:29, Mark Burton wrote:
>> Does anybody know if the current atomic_cmpxchg will support 64 bit
>> on a (normal) 32 bit x86, or do we need to special case that with
>> cmpxchg8b ? (I get the impression that it will automatically use
>> cmpxchg8b, but not cmpxchg16b - but I’m by no means sure).
>
> Both cmpxchg8b and cmpxchg16b are used, respectively on 32-bit and
> 64-bit x86.
>
Thanks Paolo, so we are OK for x86, but we would need to disable multi-thread
for other 32 bit hosts, and provide a correct implementation for non
multi-thread…
You dont happen to know of a convenient macro we can use to test for ’32 bit
hosts that dont support 64bit cmpxchg ….’
Cheers
Mark.
> Paolo
+44 (0)20 7100 3485 x 210
+33 (0)5 33 52 01 77x 210
+33 (0)603762104
mark.burton
- [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, fred . konrad, 2015/06/18
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Paolo Bonzini, 2015/06/18
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Peter Maydell, 2015/06/18
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Mark Burton, 2015/06/18
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Peter Maydell, 2015/06/18
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Mark Burton, 2015/06/19
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Paolo Bonzini, 2015/06/19
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX,
Mark Burton <=
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Paolo Bonzini, 2015/06/19
- Re: [Qemu-devel] [RFC PATCH V3] Use atomic cmpxchg to atomically check the exclusive value in a STREX, Mark Burton, 2015/06/19