[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: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations |
Date: |
Wed, 08 Aug 2012 10:55:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
Il 08/08/2012 08:25, Liu Ping Fan ha scritto:
> 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.
Then it cannot be GPLv2 _or later_. Please use the version that I
pointed you to.
Paolo
Currently, only x86 atomic ops
> included, and will be extended for other arch for future.
>
> Signed-off-by: Liu Ping Fan <address@hidden>
> ---
> include/qemu/atomic.h | 161
> +++++++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 161 insertions(+), 0 deletions(-)
> create mode 100644 include/qemu/atomic.h
>
> diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h
> new file mode 100644
> index 0000000..8e1fc3e
> --- /dev/null
> +++ b/include/qemu/atomic.h
> @@ -0,0 +1,161 @@
> +/*
> + * Simple interface for atomic operations.
> + *
> + * This work is licensed under the terms of the GNU GPL, version 2 or later.
> + * See the COPYING file in the top-level directory.
> + *
> + */
- [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