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. > + * > + */ From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz23Z-0000Ja-8v for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz23T-0004Dc-Av for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:55:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz23T-0004DD-2N for qemu-devel@nongnu.org; Wed, 08 Aug 2012 04:55:51 -0400 Message-ID: <5022298E.6090607@redhat.com> Date: Wed, 08 Aug 2012 10:55:42 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1344407156-25562-1-git-send-email-qemulist@gmail.com> <1344407156-25562-2-git-send-email-qemulist@gmail.com> In-Reply-To: <1344407156-25562-2-git-send-email-qemulist@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 01/15] atomic: introduce atomic operations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: kvm@vger.kernel.org, Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, Blue Swirl , Avi Kivity , Anthony Liguori , Stefan Hajnoczi , =?ISO-8859-15?Q?Andreas_F=E4rber?= 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. > + * > + */