All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Prateek Sharma <prateeks@cs.umass.edu>, xen-devel@lists.xen.org
Subject: Re: VM checkpoint image format
Date: Sun, 22 Dec 2013 15:29:39 +0000	[thread overview]
Message-ID: <52B70563.6090907@citrix.com> (raw)
In-Reply-To: <alpine.LRH.2.03.1312211127170.8855@loki.cs.umass.edu>

On 21/12/2013 16:31, Prateek Sharma wrote:
> Hello all,
>     Is the VM-save image format specified anywhere? (the file written
> to by xc_domain_save). I am looking for what fields are saved in what
> order.
>     Or is the xc_domain_save function itself the specification? Can I
> change the order of fields saved (thus changing the on-disk image
> format) and expect no breakages? Ofcourse, I will need to change the
> xc_domain_restore function as well.
>
> Thanks!
> --Prateek

There is no documentation that I am aware of, other than the code
itself, and the code is a rats nest.  The format itself is quite lacking
in terms of extensibility, and makes some assumptions which are not
actually accurate.

In my copious free time (of which I have none), or when XenServer
decided that it actually wants migration which works in combination with
ballooning (or any of the other more interesting memory modes), I have a
plan to make a "migration protocol v2" which shall be formally specified
in a document, and have ample room for forward extensibility in a
backward compatible manner.


As for changing the order of things.  So long as your xc_domain_save()
and xc_domain_restore() have similar expectations of what order to
put/find chunks of the stream, it should work fine.  It would help if
you described what changes you wish to make.  We might be able to point
you at the correct area.

~Andrew

>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

  reply	other threads:[~2013-12-22 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-21 16:31 VM checkpoint image format Prateek Sharma
2013-12-22 15:29 ` Andrew Cooper [this message]
2013-12-22 21:45   ` Prateek Sharma
2014-01-06 10:40     ` Ian Campbell
2014-01-06 10:38   ` Ian Campbell

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=52B70563.6090907@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=prateeks@cs.umass.edu \
    --cc=xen-devel@lists.xen.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.