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

Re: [Xen-devel] [Qemu-devel] [help] QEMUFile's format



On Fri, Dec 23, 2011 at 01:17:00PM +0800, Âçæaware wrote:
>      Is anyone clear about the format of qemu file for savevm or loadvm?

If you are interested in the serialized device state format (e.g. the
e1000 NIC's serialized state) then the answer is no.  I'm not aware of
any specification or schema that documents the device state.

It has been known to change in the past and writing tools that depend on
a specific device state layout outside of qemu.git is not viable today
because you'll have to watch qemu.git hw/ code changes and update your
external code every time something changes.  It seems like a bad idea to
duplicate the device state layout outside of qemu.git.

For a temporary hack, read the QEMUFile and hw/ save/load code.  You can
try qemu-io -c "read -b 0 $length" to extract the vmstate from a qcow2
image file.

Stefan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.