From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [RFH] Qemu main thread is blocked in g_poll in windows guest Date: Tue, 15 Oct 2013 13:52:01 +0200 Message-ID: <525D2C61.7080203@redhat.com> References: <7A2C95E1327F7148AB122F200A3EFA403447CB6A@SZXEMA502-MBX.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "qemu-devel@nongnu.org" , "qemu-devel-request@nongnu.org" , "kvm@vger.kernel.org" , "Huangpeng (Peter)" , Luonengjun To: Xiexiangyou Return-path: Received: from mail-qe0-f47.google.com ([209.85.128.47]:47760 "EHLO mail-qe0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758116Ab3JOLwI (ORCPT ); Tue, 15 Oct 2013 07:52:08 -0400 Received: by mail-qe0-f47.google.com with SMTP id b4so6021820qen.20 for ; Tue, 15 Oct 2013 04:52:07 -0700 (PDT) In-Reply-To: <7A2C95E1327F7148AB122F200A3EFA403447CB6A@SZXEMA502-MBX.china.huawei.com> Sender: kvm-owner@vger.kernel.org List-ID: 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