qemu-devel
[Top][All Lists]
Advanced

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

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


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [help] QEMUFile's format
Date: Fri, 30 Dec 2011 11:16:09 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

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