From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIvaP-0004wH-5m for qemu-devel@nongnu.org; Sun, 17 Aug 2014 04:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIvaE-0000kW-JK for qemu-devel@nongnu.org; Sun, 17 Aug 2014 04:13:09 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:64161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIvaE-0000kR-C1 for qemu-devel@nongnu.org; Sun, 17 Aug 2014 04:12:58 -0400 Received: by mail-wi0-f178.google.com with SMTP id hi2so2352632wib.11 for ; Sun, 17 Aug 2014 01:12:57 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53F06405.4010807@redhat.com> Date: Sun, 17 Aug 2014 10:12:53 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <53E8962E.70308@huawei.com> <33183CC9F5247A488A2544077AF1902086C29CAB@SZXEMA503-MBS.china.huawei.com> In-Reply-To: <33183CC9F5247A488A2544077AF1902086C29CAB@SZXEMA503-MBS.china.huawei.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] the whole virtual machine hangs when IO does not come back! List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Gonglei (Arei)" , "Wubin (H)" , "qemu-devel@nongnu.org" Cc: "kwolf@redhat.com" , "Zhangmin (Rudy)" , "Huangpeng (Peter)" , "stefanha@redhat.com" Il 11/08/2014 13:39, Gonglei (Arei) ha scritto: >> I think the VM hangs there because the VCPU thread holds the global >> qemu metux lock and waits for IO to come back. However, in my test, the >> IO doesn't come back (because of the multipath software). Therefore, the >> VCPU thread never releases the global lock, and other threads can never >> get the lock. Is there any idea to solve the whole vm hanging problem? The problem is that qemu_aio_cancel is a synchronous function. You can work around it with an eh_times_out function in the virtio-scsi driver, but the real fix would be in QEMU. Paolo >> I also did the same test on the VMware platform, the IO hangs but the VM >> is still working. Thanks! >> >