Received: from eggs.gnu.org ([2001:4830:134:3::10]:58268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2QHs-0005ZE-1v for qemu-devel@nongnu.org; Sun, 23 Apr 2017 18:47:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2QHr-0004AK-9X for qemu-devel@nongnu.org; Sun, 23 Apr 2017 18:47:24 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:45610) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2QHr-00049x-3D for qemu-devel@nongnu.org; Sun, 23 Apr 2017 18:47:23 -0400 Date: Mon, 24 Apr 2017 00:47:20 +0200 From: Aurelien Jarno Message-ID: <20170423224720.lbqt7tw5tzy2yuyl@aurel32.net> References: <20170423223240.17917-1-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v2] s390x/misc_helper.c: wrap s390_virtio_hypercall in BQL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?iso-8859-15?Q?Mathieu-Daud=E9?= Cc: qemu-devel@nongnu.org, Alexander Graf , Richard Henderson On 2017-04-23 19:38, Philippe Mathieu-Daud=E9 wrote: > Hi Aurelien! >=20 > Why don't lock inside s390_virtio_hypercall() directly round the diag500 > dispatch call? s390_virtio_hypercall is shared between TCG and KVM. For KVM the lock is already done before calling s390_virtio_hypercall in kvm_arch_handle_exit. --=20 Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net