From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjSE-0007Ok-9Q for qemu-devel@nongnu.org; Thu, 08 Dec 2011 14:16:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYjSD-00037d-Ap for qemu-devel@nongnu.org; Thu, 08 Dec 2011 14:16:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYjSD-00037T-1z for qemu-devel@nongnu.org; Thu, 08 Dec 2011 14:16:25 -0500 Date: Thu, 8 Dec 2011 17:16:19 -0200 From: Luiz Capitulino Message-ID: <20111208171619.5d4785ec@doriath> In-Reply-To: <20111208190700.GA19710@redhat.com> References: <20111208165258.17ab95f7@doriath> <20111208190700.GA19710@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC] qemu-ga: Introduce guest-hibernate command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Amit Shah , qemu-devel , mdroth@linux.vnet.ibm.com On Thu, 8 Dec 2011 19:07:00 +0000 "Daniel P. Berrange" wrote: > On Thu, Dec 08, 2011 at 04:52:58PM -0200, Luiz Capitulino wrote: > > This is basically suspend to disk on a Linux guest. > > > Now, while testing this or even "echo disk > /sys/power/state" I get several > > funny results. Some times qemu just dies after printing that message: > > I think you should really be invoking 'pm-hibernate', because IIUC there > are others tasks that need to be done, besides just telling the kernel > to hibernate via sysfs. The good thing about it is that it will work among all distros... Maybe we should try to run '/usr/sbin/pm-hibernate' first, and only write to the sysfs file if that fails.