From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by ozlabs.org (Postfix) with ESMTP id B33B6B6EE9 for ; Sun, 27 Jun 2010 21:49:10 +1000 (EST) References: <1277508314-915-1-git-send-email-agraf@suse.de> <1277508314-915-9-git-send-email-agraf@suse.de> <4C2709F4.10805@redhat.com> <77DBE095-884F-4986-BE2B-15B2EEAD8CAC@suse.de> <4C271F5A.1030409@redhat.com> <4C272F08.8090709@redhat.com> Message-Id: From: Alexander Graf To: Avi Kivity In-Reply-To: <4C272F08.8090709@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Mime-Version: 1.0 (iPhone Mail 7E18) Subject: Re: [PATCH 08/26] KVM: PPC: Add PV guest critical sections Date: Sun, 27 Jun 2010 13:49:36 +0200 Cc: linuxppc-dev , KVM list , "kvm-ppc@vger.kernel.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Am 27.06.2010 um 12:59 schrieb Avi Kivity : > On 06/27/2010 01:33 PM, Alexander Graf wrote: >>> Or inc/dec... >> >> >> Uh - huh? How would that help? > > inc shared->critical # disable interrupts There is no opcode in the ppc isa that acts on momery without involving a register. An inc would be: ld rX, A(0) addi rX, rX, 1 std rX, A(0) Alex >