qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 03/26] Remove SaveVM v2 support


From: Stefano Stabellini
Subject: [Qemu-devel] Re: [PATCH 03/26] Remove SaveVM v2 support
Date: Thu, 17 Sep 2009 12:40:50 +0100
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

On Fri, 11 Sep 2009, Juan Quintela wrote:
> About this, nobody is wanting to remove useful features.  I was removing
> things that didn't work.  The best plan of action if you want v2 support
> on tree is to fix it.  Do what I did:
> 
> This commit introduces SaveVM v3
> commit 9366f4186025e1d8fc3bebd41fb714521c170b6f
> Author: aliguori <address@hidden>
> Date:   Mon Oct 6 14:53:52 2008 +0000
> 
>     Introduce v3 of savevm protocol
> 
> I checkout previous commit, savevm one machine. Go to the present and
> try to load it -> RAM don't work.
> 
> Search what commit broke it:
> 
> commit 94a6b54fd6d2d3321066cb4db7abeeb417af9365
> Author: pbrook <address@hidden>
> Date:   Sat Apr 11 17:15:54 2009 +0000
> 
>     Implement dynamic guest ram allocation.
> 
> Went to the previous one, to see if this was the only broken thing.
> And found that ide and vga was broken at that point.
> 
> I stopped searching there.
> You get that image to load, and I try not to break it with VMState
> changes.  Can you (or anybody else) got v2 to life?  If it is working,
> and you can use it, I don't want to break its support.  But if it has
> been broken for ages and nobody steps it to fix it -> removing is only
> useful thing that I can think of doing.

I didn't have much time to work on this but I thought it would be a
good idea to give an update on the situation.

The two patches I am attaching to this email fix the ide v1 state loading
problem and the v2 ram loading problem (you have to make sure that the
ram size given from the command line is the same of the saved image).
They apply to CS 799f1f2325a1136a84d6f0ea94d891ef33656af2 that is right
before "ram: remove support for loading v1" and "ram: Remove SaveVM
Version 2 support".

I was able to save and restore qemu guests in graphical mode with no issues.
There is still a font corruption problem that may be the vga issue you
were reporting. The vga state is saved and loaded correctly but the
fonts come up all zeroed after resume and I am still not sure why, it
might be a videram saving problem.

Reverting "Remove SaveVM v2 support" and "ram: Remove SaveVM Version 2
support" and applying these patches on the latest CS doesn't give the
results you would expect: qemu segfaults resuming the cirrus vga state
that may be a symptom of a problem introduced by the vmstate changes in
cirrus vga.

I'll be away for a week or two but I think IanJ will keep working on this.

Cheers,

Stefano

Attachment: fix_ram
Description: Text document

Attachment: fix_ide
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]