From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW3Ae-0004GK-Gv for qemu-devel@nongnu.org; Tue, 15 Oct 2013 07:52:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW3AW-0006oZ-3Y for qemu-devel@nongnu.org; Tue, 15 Oct 2013 07:52:16 -0400 Sender: Paolo Bonzini Message-ID: <525D2C61.7080203@redhat.com> Date: Tue, 15 Oct 2013 13:52:01 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <7A2C95E1327F7148AB122F200A3EFA403447CB6A@SZXEMA502-MBX.china.huawei.com> In-Reply-To: <7A2C95E1327F7148AB122F200A3EFA403447CB6A@SZXEMA502-MBX.china.huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFH] Qemu main thread is blocked in g_poll in windows guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Xiexiangyou Cc: "qemu-devel-request@nongnu.org" , Luonengjun , "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "Huangpeng (Peter)" Il 15/10/2013 12:21, Xiexiangyou ha scritto: > Hi all: > > Windows2008 Guest run without pressure for long time. Sometimes, it > stop and looks like hanging. But when I connect to it with VNC, It > resume to run, but VM's time is delayed . When the vm is hanging, I > check the main thread of QEMU. I find that the thread is blocked in > g_poll function. it is waiting for a SIG, However, there is no SIG . > > I tried the clock with "hpet" and "no hpet", but came out the same > problem. Then I upgrade the glibc to newer, it didn't work too. I'm > confused. Is the reason that VM in sleep state and doesn't emit the > signal. I set the windows 's "power option", enable/disable the > "allow the wake timers", I didn't work. > > Is anybody have met the same problem before, or know the reason. Your > reply will be very helpful. This post is missing a few pieces of information: * What version of QEMU is this? * What is the command line? * How do you know g_poll is waiting for a signal and not for a file descriptor? * What is the backtrace of the main thread? What is the backtrace of the VCPU thread? etc. Paolo