From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59734 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSmmr-0003xS-6i for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSmmp-0002uD-Mz for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:32:37 -0500 Received: from mail-wy0-f173.google.com ([74.125.82.173]:42939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSmmp-0002u5-He for qemu-devel@nongnu.org; Wed, 15 Dec 2010 03:32:35 -0500 Received: by wyg36 with SMTP id 36so1352677wyg.4 for ; Wed, 15 Dec 2010 00:32:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <3A408EF490B9472CBA00416778F483CA@c00148h> From: Mulyadi Santosa Date: Wed, 15 Dec 2010 15:31:53 +0700 Message-ID: Subject: Re: [Qemu-devel] Sometimes qem-kvm hang at kvm_put_vcpu_events when virsh restore. Both version 0.12.5 / 0.13.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: changlimin Cc: qemu-devel@nongnu.org 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 > =A0 =A0Sometimes, the guest restore successful. sometimes restore fail. > =A0 =A0I debug the code, the qemu-kvm hang at =A0kvm_put_vcpu_events, the= process state is D, uninterruptable sleep. Only can killed by kill -9. > =A0 =A0I 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? --=20 regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com