Re: Sending a VM for restart (after it has been shutdown and saved)

2012-09-10 Thread Marcelo Tosatti
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?

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Sending a VM for restart (after it has been shutdown and saved)

2012-09-03 Thread Michael Johns
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
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html