From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxuh-0006fH-66 for qemu-devel@nongnu.org; Fri, 18 Mar 2016 13:10:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agxuf-0003AM-U7 for qemu-devel@nongnu.org; Fri, 18 Mar 2016 13:10:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxuf-0003A7-O7 for qemu-devel@nongnu.org; Fri, 18 Mar 2016 13:10:13 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 6351E64D09 for ; Fri, 18 Mar 2016 17:10:13 +0000 (UTC) References: <1453202071-10289-1-git-send-email-berrange@redhat.com> <1453202071-10289-3-git-send-email-berrange@redhat.com> <56EC303E.7060800@redhat.com> <20160318165637.GN17895@redhat.com> From: Laurent Vivier Message-ID: <56EC3672.9050006@redhat.com> Date: Fri, 18 Mar 2016 18:10:10 +0100 MIME-Version: 1.0 In-Reply-To: <20160318165637.GN17895@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 2/4] char: convert from GIOChannel to QIOChannel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Paolo Bonzini , qemu-devel@nongnu.org On 18/03/2016 17:56, Daniel P. Berrange wrote: > On Fri, Mar 18, 2016 at 05:43:42PM +0100, Laurent Vivier wrote: >> Hi, >> >> testing something else (migration...) I've discovered (by bisecting) >> that this patch can allow to lock the machine. I'm using the pseries >> machine, but I think it should happen with PC too. >> >> I start a machine with: >> >> ... >> -device virtio-serial-pci,id=serial0 \ >> -chardev socket,id=channel0,path=/tmp/serial_socket,server,nowait \ >> -device virtserialport,bus=serial0.0,nr=1,chardev=channel0 >> >> and I open the unix socket /tmp/serial_socket without reading it: >> >> $ python >> import socket >> sock = socket.socket(socket.AF_UNIX) >> sock.connect("/tmp/serial_socket_1") >> >> Then in the guest: >> >> cat /dev/zero > /dev/vport1p1 >> >> -> at this point, the machine hangs until we read data in unix socket >> (we can't interact with monitor, we can't ping the machine...) > > Pretty sure that'll be the same issue Andrew reported here > > https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg02843.html > > can you see if his suggested addition works for you too Yes, it works :) Thanks, Laurent