Received: from eggs.gnu.org ([2001:4830:134:3::10]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2Qd1-0000yH-Uq for qemu-devel@nongnu.org; Sun, 23 Apr 2017 19:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2Qcy-0003WD-09 for qemu-devel@nongnu.org; Sun, 23 Apr 2017 19:09:15 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:34749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2Qcx-0003Vp-Qu for qemu-devel@nongnu.org; Sun, 23 Apr 2017 19:09:11 -0400 Received: by mail-qk0-x241.google.com with SMTP id u75so1649106qka.1 for ; Sun, 23 Apr 2017 16:09:11 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20170423223240.17917-1-aurelien@aurel32.net> <20170423224720.lbqt7tw5tzy2yuyl@aurel32.net> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <8d85594d-ab87-a747-ff24-0841fe47988f@amsat.org> Date: Sun, 23 Apr 2017 20:09:08 -0300 MIME-Version: 1.0 In-Reply-To: <20170423224720.lbqt7tw5tzy2yuyl@aurel32.net> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit 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: Aurelien Jarno Cc: Richard Henderson , qemu-devel@nongnu.org, Alexander Graf On 04/23/2017 07:47 PM, Aurelien Jarno wrote: > On 2017-04-23 19:38, Philippe Mathieu-Daudé wrote: >> Hi Aurelien! >> >> 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. Fair enough! Reviewed-by: Philippe Mathieu-Daudé