From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=41762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSmzN-0000RS-Ou for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:45:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSmzM-0005An-6E for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:45:33 -0500 Received: from [60.191.123.50] (port=57767 helo=huawei-3com.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSmzL-00059S-Ot for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:45:32 -0500 Received: from huawei-3com.com (localhost [127.0.0.1]) by h3cml01-in.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0LDG00GAYOBN4V@h3cml01-in.huawei-3com.com> for qemu-devel@nongnu.org; Wed, 15 Dec 2010 16:45:24 +0800 (CST) Received: from H3CHUB02-EX.srv.huawei-3com.com ([10.63.16.140]) by h3cml01-in.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTPS id <0LDG00GIOOBNSK@h3cml01-in.huawei-3com.com> for qemu-devel@nongnu.org; Wed, 15 Dec 2010 16:45:23 +0800 (CST) Date: Wed, 15 Dec 2010 16:45:14 +0800 From: changlimin Subject: Re: [Qemu-devel] Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0 Message-id: <99964DAE2E034CA48DC1F3A99A380413@c00148h> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT References: <3A408EF490B9472CBA00416778F483CA@c00148h> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: qemu-devel@nongnu.org I have tried 1 vcpu and 2 vcpus, both sometimes restore fail. ----- Original Message ----- From: "Mulyadi Santosa" To: "changlimin" Cc: Sent: Wednesday, December 15, 2010 4:31 PM Subject: Re: [Qemu-devel] Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0 On Wed, Dec 15, 2010 at 15:08, changlimin wrote: > 1. I create a guest use libvirt; > 2. I start the guest use: virsh start guest; > 3. I save the guest to a file, use: virsh save guest guest.save > 4. I retore the guest, use : virsh retore guest.save > Sometimes, the guest restore successful. sometimes restore fail. > I debug the code, the qemu-kvm hang at kvm_put_vcpu_events, the process state is D, uninterruptable sleep. Only can killed by kill -9. > I print the events when kvm_put_vcpu_events / kvm_get_vcpu_events, it is always different, event when restore successful I could only say, i smell deadlock due to race condition here...but I have no further prove...how many (virtual) CPU did you simulate at that time? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com