From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxhc-0002s6-KR for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:56:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agxhZ-00074q-AC for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:56:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxhZ-00074c-5B for qemu-devel@nongnu.org; Fri, 18 Mar 2016 12:56:41 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 96F8BC00124A for ; Fri, 18 Mar 2016 16:56:40 +0000 (UTC) Date: Fri, 18 Mar 2016 16:56:37 +0000 From: "Daniel P. Berrange" Message-ID: <20160318165637.GN17895@redhat.com> References: <1453202071-10289-1-git-send-email-berrange@redhat.com> <1453202071-10289-3-git-send-email-berrange@redhat.com> <56EC303E.7060800@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <56EC303E.7060800@redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 2/4] char: convert from GIOChannel to QIOChannel Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: Paolo Bonzini , qemu-devel@nongnu.org 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 Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|