From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 01/15] atomic: introduce atomic operations Date: Wed, 08 Aug 2012 10:55:42 +0200 Message-ID: <5022298E.6090607@redhat.com> References: <1344407156-25562-1-git-send-email-qemulist@gmail.com> <1344407156-25562-2-git-send-email-qemulist@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Anthony Liguori , Avi Kivity , Jan Kiszka , Marcelo Tosatti , Stefan Hajnoczi , Blue Swirl , =?ISO-8859-15?Q?Andreas_F=E4rber?= To: Liu Ping Fan Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27328 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932460Ab2HHIzy (ORCPT ); Wed, 8 Aug 2012 04:55:54 -0400 In-Reply-To: <1344407156-25562-2-git-send-email-qemulist@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 08/08/2012 08:25, Liu Ping Fan ha scritto: > From: Liu Ping Fan > > 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 > --- > 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. > + * > + */