From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Kittel Subject: Re: KVM freeze when using --serial Date: Wed, 07 Apr 2010 16:52:04 +0200 Message-ID: <4BBC9C14.8090001@in.tum.de> References: <4BBC9781.6030705@in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: qemu-devel@nongnu.org To: kvm@vger.kernel.org Return-path: Received: from atlas.fs.tum.de ([129.187.202.11]:50867 "EHLO atlas.fs.tum.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932604Ab0DGOwF (ORCPT ); Wed, 7 Apr 2010 10:52:05 -0400 In-Reply-To: <4BBC9781.6030705@in.tum.de> Sender: kvm-owner@vger.kernel.org List-ID: Hi again, I just tried to use unix domain sockets. So I used the parameter --monitor unix:monitor:server:nowait on the fir= st VM and the parameter --serial unix:monitor on the second VM, And again the second VM freezes when running my test application. cya Tom Thomas Kittel wrote: > Hi there, > > I already posted this problem to #kvm on freenode. > > Please set me in CC: when replying to this mail, as I am not=20 > subscribed to this mailing lists right now. > > The Scenario is as follows: > > I got 2 VM processes in userspace. > > The first is started with the parameter --monitor pty. > =3D> This results in a file /dev/pts/x in the host, > (crw--w---- 1 kittel tty 136, 3 2010-04-07 15:51 /dev/pts/3 on= =20 > my system) > > Another VM is then started with the parameter --serial /dev/pts/3 > =3D> This results in /dev/ttyS0 inside the second VM. > > Both VMs are running debian lenny. The host (debian) uses qemu-kvm=20 > 0.12.3. > "startvms.sh start" is used to start the VMs. > > Running the executable build from test.c in the second VM results in = a=20 > freeze of this VM. > (The test.c included uses /dev/ttyS1 as /dev/ttyS0 is the VMs serial=20 > console in my setup.) > The process uses 100% CPU and is stuck in kvm_mutex_lock(). > > Trying to use the build in gdbserver didn=B4t work because it also lo= cked. > > Is there a way to tunnel one VMs monitor console to another VM? > > Thanks Thomas > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzWby-0005AG-3P for qemu-devel@nongnu.org; Wed, 07 Apr 2010 10:52:10 -0400 Received: from [140.186.70.92] (port=52768 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzWbw-00059E-NV for qemu-devel@nongnu.org; Wed, 07 Apr 2010 10:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzWbv-0008E5-45 for qemu-devel@nongnu.org; Wed, 07 Apr 2010 10:52:08 -0400 Received: from atlas.fs.tum.de ([129.187.202.11]:57772) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzWbu-0008Dx-Qi for qemu-devel@nongnu.org; Wed, 07 Apr 2010 10:52:07 -0400 Message-ID: <4BBC9C14.8090001@in.tum.de> Date: Wed, 07 Apr 2010 16:52:04 +0200 From: Thomas Kittel MIME-Version: 1.0 References: <4BBC9781.6030705@in.tum.de> In-Reply-To: <4BBC9781.6030705@in.tum.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: KVM freeze when using --serial List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org Cc: qemu-devel@nongnu.org Hi again, I just tried to use unix domain sockets. So I used the parameter --monitor unix:monitor:server:nowait on the first= VM and the parameter --serial unix:monitor on the second VM, And again the second VM freezes when running my test application. cya Tom Thomas Kittel wrote: > Hi there, > > I already posted this problem to #kvm on freenode. > > Please set me in CC: when replying to this mail, as I am not=20 > subscribed to this mailing lists right now. > > The Scenario is as follows: > > I got 2 VM processes in userspace. > > The first is started with the parameter --monitor pty. > =3D> This results in a file /dev/pts/x in the host, > (crw--w---- 1 kittel tty 136, 3 2010-04-07 15:51 /dev/pts/3 on=20 > my system) > > Another VM is then started with the parameter --serial /dev/pts/3 > =3D> This results in /dev/ttyS0 inside the second VM. > > Both VMs are running debian lenny. The host (debian) uses qemu-kvm=20 > 0.12.3. > "startvms.sh start" is used to start the VMs. > > Running the executable build from test.c in the second VM results in a=20 > freeze of this VM. > (The test.c included uses /dev/ttyS1 as /dev/ttyS0 is the VMs serial=20 > console in my setup.) > The process uses 100% CPU and is stuck in kvm_mutex_lock(). > > Trying to use the build in gdbserver didn=B4t work because it also lock= ed. > > Is there a way to tunnel one VMs monitor console to another VM? > > Thanks Thomas > > > >