From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YznJS-0004sn-C7 for qemu-devel@nongnu.org; Tue, 02 Jun 2015 10:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YznJN-0006vT-75 for qemu-devel@nongnu.org; Tue, 02 Jun 2015 10:37:06 -0400 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:42968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YznJM-0006v9-Tg for qemu-devel@nongnu.org; Tue, 02 Jun 2015 10:37:01 -0400 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 Jun 2015 15:36:58 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 730A51B08072 for ; Tue, 2 Jun 2015 15:37:50 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t52EatYC20250762 for ; Tue, 2 Jun 2015 14:36:55 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t52EatMb019077 for ; Tue, 2 Jun 2015 08:36:55 -0600 Message-ID: <556DBF87.2020908@de.ibm.com> Date: Tue, 02 Jun 2015 16:36:55 +0200 From: Christian Borntraeger MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] "iothread: release iothread around aio_poll" causes random hangs at startup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Kevin Wolf , qemu-devel , Stefan Hajnoczi Paolo, I bisected commit a0710f7995f914e3044e5899bd8ff6c43c62f916 Author: Paolo Bonzini AuthorDate: Fri Feb 20 17:26:52 2015 +0100 Commit: Kevin Wolf CommitDate: Tue Apr 28 15:36:08 2015 +0200 iothread: release iothread around aio_poll to cause a problem with hanging guests. Having many guests all with a kernel/ramdisk (via -kernel) and several null block devices will result in hangs. All hanging guests are in partition detection code waiting for an I/O to return so very early maybe even the first I/O. Reverting that commit "fixes" the hangs. Any ideas? Christian PS: A guest xml looks like test2 13bd8253-9abb-4be8-9399-73b899762aaa 286720 286720 10 8 12 hvm /boot/vmlinux-4.0.0+ /boot/ramdisk.reboot root=/dev/ram0 destroy restart preserve