Received: from eggs.gnu.org ([2001:4830:134:3::10]:34119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2LAD-0000nG-62 for qemu-devel@nongnu.org; Sun, 23 Apr 2017 13:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2LAA-0003sA-1w for qemu-devel@nongnu.org; Sun, 23 Apr 2017 13:19:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:38999 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2LA9-0003s5-RR for qemu-devel@nongnu.org; Sun, 23 Apr 2017 13:19:05 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) From: Alexander Graf In-Reply-To: <20170423160854.3478-1-aurelien@aurel32.net> Date: Sun, 23 Apr 2017 19:19:02 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <1DFAD716-AE63-46E6-86E4-31032DFDA0BC@suse.de> References: <20170423160854.3478-1-aurelien@aurel32.net> Subject: Re: [Qemu-devel] [PATCH] s390x/misc_helper.c: wrap s390_virtio_hypercall in BQL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org, Richard Henderson > Am 23.04.2017 um 18:08 schrieb Aurelien Jarno : >=20 > s390_virtio_hypercall can trigger IO events and interrupts, most notably > when using virtio-ccw devices. >=20 > Signed-off-by: Aurelien Jarno > --- > roms/qemu-palcode | 2 +- > roms/seabios | 2 +- > target/s390x/misc_helper.c | 2 ++ > 3 files changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/roms/qemu-palcode b/roms/qemu-palcode > index f3c7e44c70..c87a92639b 160000 > --- a/roms/qemu-palcode > +++ b/roms/qemu-palcode > @@ -1 +1 @@ > -Subproject commit f3c7e44c70254975df2a00af39701eafbac4d471 > +Subproject commit c87a92639b28ac42bc8f6c67443543b405dc479b > diff --git a/roms/seabios b/roms/seabios > index 5f4c7b13cd..e2fc41e24e 160000 > --- a/roms/seabios > +++ b/roms/seabios > @@ -1 +1 @@ > -Subproject commit 5f4c7b13cdf9c450eb55645f4362ea58fa61b79b > +Subproject commit e2fc41e24ee0ada60fc511d60b15a41b294538be I guess you didn't mean to send those hunks? > diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c > index 4946b56ab3..aec737d707 100644 > --- a/target/s390x/misc_helper.c > +++ b/target/s390x/misc_helper.c > @@ -307,7 +307,9 @@ void HELPER(diag)(CPUS390XState *env, uint32_t r1, uin= t32_t r3, uint32_t num) > switch (num) { > case 0x500: > /* KVM hypercall */ > + qemu_mutex_lock_iothread(); > r =3D s390_virtio_hypercall(env); > + qemu_mutex_unlock_iothread(); That change however looks good to me. So without the subprj commits, Reviewed-by: Alexander Graf Alex > break; > case 0x44: > /* yield */ > --=20 > 2.11.0 >=20