qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: ¤終於aware <250716708@qq.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [help] QEMUFile's format
Date: Fri, 30 Dec 2011 11:16:09 +0000	[thread overview]
Message-ID: <20111230111609.GC1740@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <tencent_37EF499B2FBF40764715DEA6@qq.com>

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

      parent reply	other threads:[~2011-12-30 11:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-23  5:17 [Qemu-devel] [help] QEMUFile's format ¤終於aware
2011-12-23  5:32 ` Shu Ming
2011-12-23  6:03   ` 陳韋任
2011-12-23  6:05     ` 陳韋任
2011-12-23  6:09     ` Dong Xu Wang
2011-12-30 11:16 ` Stefan Hajnoczi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111230111609.GC1740@stefanha-thinkpad.localdomain \
    --to=stefanha@gmail.com \
    --cc=250716708@qq.com \
    --cc=qemu-devel@nongnu.org \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).