From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: Sending a VM for restart (after it has been shutdown and saved) Date: Mon, 10 Sep 2012 13:30:59 -0300 Message-ID: <20120910163059.GA12406@amt.cnet> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Michael Johns Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752001Ab2IJRcL (ORCPT ); Mon, 10 Sep 2012 13:32:11 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Sep 03, 2012 at 06:35:24PM +0100, Michael Johns wrote: > Hi list, > > I have been hacking the KVM-QEMU code, but need some help to be able > to perform a particular operation. > > Currently, I perform some operations on the VM image after it has > received a shutdown call, and after the image itself has been fully > saved before KVM-QEMU shuts down. I perform these operations within > the bdrv_close_all () method within block.c, and it works exactly as I > want it to. > > What I would like to be able to do is to send the VM in question back > for a restart from that part of the code, and I was wondering if this > was possible with a given command. When I say send it back, I mean > literally to have the KVM-QEMU treat the VM as if has just been > started/restarted. Although I know a few things, there is still a lot > I don't know so it would be great to get some help on this. > > Thanks, > > M Do you mean system_reset command from QEMU monitor?