Received: from eggs.gnu.org ([2001:4830:134:3::10]:39068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxwoX-0002vZ-4I for qemu-devel@nongnu.org; Mon, 08 Dec 2014 06:49:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxwoO-0004pb-2p for qemu-devel@nongnu.org; Mon, 08 Dec 2014 06:49:17 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:34497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxwoN-0004mZ-PB for qemu-devel@nongnu.org; Mon, 08 Dec 2014 06:49:08 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 8 Dec 2014 11:48:44 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0588817D8042 for ; Mon, 8 Dec 2014 11:49:02 +0000 (GMT) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sB8BmeNx40304886 for ; Mon, 8 Dec 2014 11:48:40 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sB8Bmekq002975 for ; Mon, 8 Dec 2014 04:48:40 -0700 Date: Mon, 8 Dec 2014 12:48:39 +0100 From: Thomas Huth Message-ID: <20141208124839.5d26bfa8@oc7435384737.ibm.com> In-Reply-To: <1418026739-60668-1-git-send-email-blaschka@linux.vnet.ibm.com> References: <1418026739-60668-1-git-send-email-blaschka@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] s390/pci: remove unnecessary cpu_synchronize_state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frank Blaschka Cc: cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, agraf@suse.de, qemu-devel@nongnu.org On Mon, 8 Dec 2014 09:18:59 +0100 Frank Blaschka wrote: > Remove all unnecessary calls to cpu_synchronize_state > > Signed-off-by: Frank Blaschka > --- > hw/s390x/s390-pci-inst.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c > index f503665..83ab60f 100644 > --- a/hw/s390x/s390-pci-inst.c > +++ b/hw/s390x/s390-pci-inst.c > @@ -564,8 +564,6 @@ int pcistb_service_call(S390CPU *cpu, uint8_t r1, uint8_t r3, uint64_t gaddr) > uint8_t pcias; > uint8_t len; > > - cpu_synchronize_state(CPU(cpu)); > - > if (env->psw.mask & PSW_MASK_PSTATE) { > program_interrupt(env, PGM_PRIVILEGED, 6); > return 0; > @@ -711,8 +709,6 @@ int mpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba) > S390PCIBusDevice *pbdev; > uint64_t cc = ZPCI_PCI_LS_OK; > > - cpu_synchronize_state(CPU(cpu)); > - > if (env->psw.mask & PSW_MASK_PSTATE) { > program_interrupt(env, PGM_PRIVILEGED, 6); > return 0; > @@ -786,8 +782,6 @@ int stpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba) > uint32_t data; > uint64_t cc = ZPCI_PCI_LS_OK; > > - cpu_synchronize_state(CPU(cpu)); > - > if (env->psw.mask & PSW_MASK_PSTATE) { > program_interrupt(env, PGM_PRIVILEGED, 6); > return 0; Reviewed-by: Thomas Huth