[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations |
Date: |
Wed, 08 Aug 2012 12:02:29 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
On 08/08/2012 09:25 AM, Liu Ping Fan wrote:
> From: Liu Ping Fan <address@hidden>
>
> If out of global lock, we will be challenged by SMP in low level,
> so need atomic ops.
>
> This file is heavily copied from kernel. Currently, only x86 atomic ops
> included, and will be extended for other arch for future.
>
I propose we use gcc builtins. We get automatic architecture support,
and tuning for newer processors if the user so chooses.
http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html
In May 2031 we can switch to C11 atomics.
--
error compiling committee.c: too many arguments to function
- [Qemu-devel] [PATCH 0/15 v2] prepare unplug out of protection of global lock, Liu Ping Fan, 2012/08/08
- [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Liu Ping Fan, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Peter Maydell, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Stefan Hajnoczi, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Paolo Bonzini, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Peter Maydell, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Paolo Bonzini, 2012/08/08
- Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations, Avi Kivity, 2012/08/08
[Qemu-devel] [PATCH 02/15] qom: using atomic ops to re-implement object_ref, Liu Ping Fan, 2012/08/08
[Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj, Liu Ping Fan, 2012/08/08