On (Thu) 08 Dec 2011 [16:52:58], Luiz Capitulino wrote:
> This is basically suspend to disk on a Linux guest.
> 
> Signed-off-by: Luiz Capitulino <lcapitul...@redhat.com>
> ---
> 
> This is an RFC because I did it as simple as possible and I'm open to
> suggestions...
> 
> 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:
> 
>  "Guest moved used index from 20151 to 1"

Virtio drivers don't handle S4 at all (yet).  I have patches that are
being discussed to add this support.  Please try without virtio
devices.

> Some times it doesn't die, but I'm unable to log into the guest: I type
> username & password but the terminal kind of locks (the shell doesn't run).

kvmclock too doesn't handle resume from S4 yet.  So use '-kvmclock'
for your cpu definition (or clock=pmtmr in your kernel cmd line).

Thanks for the patch!

                Amit

Reply via email to