From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH 34/35] exec: push BQL down to cpu->do_interrupt Date: Wed, 19 Sep 2018 18:38:59 +0200 Message-ID: <20180919183859.54e6d21d.cohuck@redhat.com> References: <20180917163103.6113-1-cota@braap.org> <20180917163103.6113-35-cota@braap.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Peter Maydell , Chris Wulff , kvm@vger.kernel.org, David Hildenbrand , James Hogan , Anthony Green , Mark Cave-Ayland , qemu-devel@nongnu.org, "Edgar E. Iglesias" , Guan Xuetao , Marek Vasut , Alexander Graf , Christian Borntraeger , Richard Henderson , Artyom Tarasenko , Eduardo Habkost , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Stafford Horne , David Gibson , Peter Crosthwaite , Marcelo Tosatti , Laurent Vivier , Michael Walle , qemu-ppc@nongn To: "Emilio G. Cota" Return-path: In-Reply-To: <20180917163103.6113-35-cota@braap.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Mon, 17 Sep 2018 12:31:02 -0400 "Emilio G. Cota" wrote: > From: Paolo Bonzini > > cpu->do_interrupt can now be called with BQL held (from > cpu->cpu_exec_interrupt) or without (from cpu_handle_exception). > > Only a few targets rely on global device state in cc->do_interrupt; > add checks to those targets to acquire the BQL if not already held. > > Cc: Aleksandar Markovic > Cc: Alexander Graf > Cc: Anthony Green > Cc: Artyom Tarasenko > Cc: Aurelien Jarno > Cc: Christian Borntraeger > Cc: Chris Wulff > Cc: Cornelia Huck > Cc: David Gibson > Cc: David Hildenbrand > Cc: "Edgar E. Iglesias" > Cc: Eduardo Habkost > Cc: Guan Xuetao > Cc: James Hogan > Cc: kvm@vger.kernel.org > Cc: Laurent Vivier > Cc: Marcelo Tosatti > Cc: Marek Vasut > Cc: Mark Cave-Ayland > Cc: Michael Walle > Cc: Peter Crosthwaite > Cc: Peter Maydell > Cc: qemu-arm@nongnu.org > Cc: qemu-ppc@nongnu.org > Cc: qemu-s390x@nongnu.org > Cc: Richard Henderson > Cc: Stafford Horne > Signed-off-by: Paolo Bonzini > Signed-off-by: Emilio G. Cota > --- > accel/tcg/cpu-exec.c | 2 -- > target/arm/helper.c | 28 ++++++++++++++++++++++++++-- > target/ppc/excp_helper.c | 8 +++++++- > target/s390x/excp_helper.c | 14 +++++++++++++- > target/sh4/helper.c | 14 +++++++++++++- > target/xtensa/helper.c | 16 ++++++++++++++-- > 6 files changed, 73 insertions(+), 9 deletions(-) s390x parts: Reviewed-by: Cornelia Huck