马磊
2012-Dec-28 09:26 UTC
[PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
Hi, We can seperate the xen checkpoint file as three parts: xl config file, memory dump file of the virtual machine and qemu state file. So I add two xl sub-commands: `xl save2` and `xl restore2`, the final effect is as follows: [malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl save2 *Usage: xl [-v] save2 [options] <Domain> <CheckpointFile1> <CheckpointFile2> <CheckpointFile3> [<ConfigFile>]* * * *Save a domain state as three seperated files to restore later.* * * *Options:* * * *-h Print this help.* *-c Leave domain running after creating the snapshot.* [malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl restore2 *Usage: xl [-v] restore2 [options] [<ConfigFile>] <CheckpointFile1> <CheckpointFile2> <CheckpointFile3>* * * *Restore a domain from a saved state.* * * *Options:* * * *-h Print this help.* *-p Do not unpause domain after restoring it.* *-e Do not wait in the background for the death of the domain.* *-d Enable debug messages.* * * *Besides, the `vncdisplay` option in xl config file will determine the ID of the domainU shown in `xl list`, so it''s convenient to judge th vm-id according the xl config file. * * * *For more details, please check the attachment.* _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
马磊
2013-Jan-05 06:52 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On Fri, Dec 28, 2012 at 5:26 PM, 马磊 <aware.why@gmail.com> wrote:> Hi, > We can seperate the xen checkpoint file as three parts: xl config > file, memory dump file of the virtual machine and qemu state file. > So I add two xl sub-commands: `xl save2` and `xl restore2`, the final > effect is as follows: > > > [malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl save2 > *Usage: xl [-v] save2 [options] <Domain> <CheckpointFile1> > <CheckpointFile2> <CheckpointFile3> [<ConfigFile>]* > * > * > *Save a domain state as three seperated files to restore later.* > * > * > *Options:* > * > * > *-h Print this help.* > *-c Leave domain running after creating the snapshot.* > > [malei@xentest-4-1 Fri Dec 28 ~/honeypot/xen/xen-4.1.2]$ sudo xl restore2 > *Usage: xl [-v] restore2 [options] [<ConfigFile>] <CheckpointFile1> > <CheckpointFile2> <CheckpointFile3>* > * > * > *Restore a domain from a saved state.* > * > * > *Options:* > * > * > *-h Print this help.* > *-p Do not unpause domain after restoring it.* > *-e Do not wait in the background for the death of the domain.* > *-d Enable debug messages.* > * > * > > *Besides, the `vncdisplay` option in xl config file will determine the ID > of the domainU shown in `xl list`, so it''s convenient to judge th vm-id > according the xl config file. * > * > * > *For more details, please check the attachment.* >*How to submit a patch to the xen source trunk except through hg mecurial?* *Does anybody ever go through such thing by sending the patch to the mail list?* _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Pasi Kärkkäinen
2013-Jan-05 12:26 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On Sat, Jan 05, 2013 at 02:52:01PM +0800, ?????? wrote:> > How to submit a patch to the xen source trunk except through hg mecurial? > Does anybody ever go through such thing by sending the patch to the mail > list? >http://wiki.xen.org/wiki/Submitting_Xen_Patches -- Pasi
马磊
2013-Jan-06 02:27 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On Sat, Jan 5, 2013 at 8:26 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Sat, Jan 05, 2013 at 02:52:01PM +0800, ?????? wrote: > > > > How to submit a patch to the xen source trunk except through hg > mecurial? > > Does anybody ever go through such thing by sending the patch to the > mail > > list? > > > > http://wiki.xen.org/wiki/Submitting_Xen_Patches > > -- Pasi > > How to submit a patch to the xen source trunk except through hg mecurial?Does anybody ever go through such thing by sending the patch to the mail list? My question is that why did a patch submitted by the mail list get no attentions? Whether it has no value of reference or not, one of the core members will more or less give any response to it. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Keir Fraser
2013-Jan-06 10:58 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On 06/01/2013 02:27, "马磊" <aware.why@gmail.com> wrote:> > > On Sat, Jan 5, 2013 at 8:26 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: >> On Sat, Jan 05, 2013 at 02:52:01PM +0800, ?????? wrote: >>> >>> How to submit a patch to the xen source trunk except through hg mecurial? >>> Does anybody ever go through such thing by sending the patch to the mail >>> list? >>> >> >> http://wiki.xen.org/wiki/Submitting_Xen_Patches >> >> -- Pasi >> > How to submit a patch to the xen source trunk except through hg mecurial? > Does anybody ever go through such thing by sending the patch to the > mail list? > > My question is that why did a patch submitted by the mail list get no > attentions?It had no motivation as to why anyone should care to split the state file. It was not submitted in the required form with a signed-off-by line, and prerferably with the patch in-line rather than as an attachment. And it was not submitted against development tip of xen-unstable, but against an older stable branch which is not accepting new features. -- Keir> Whether it has no value of reference or not, one of the core members will > more or less give any response to it. > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
马磊
2013-Jan-12 05:36 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On Sun, Jan 6, 2013 at 6:58 PM, Keir Fraser <keir@xen.org> wrote:> On 06/01/2013 02:27, "马磊" <aware.why@gmail.com> wrote: > > > > > > > On Sat, Jan 5, 2013 at 8:26 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> On Sat, Jan 05, 2013 at 02:52:01PM +0800, ?????? wrote: > >>> > >>> How to submit a patch to the xen source trunk except through hg > mecurial? > >>> Does anybody ever go through such thing by sending the patch to the > mail > >>> list? > >>> > >> > >> http://wiki.xen.org/wiki/Submitting_Xen_Patches > >> > >> -- Pasi > >> > > How to submit a patch to the xen source trunk except through hg > mecurial? > > Does anybody ever go through such thing by sending the patch to the > > mail list? > > > > My question is that why did a patch submitted by the mail list get no > > attentions? > > It had no motivation as to why anyone should care to split the state file. > It was not submitted in the required form with a signed-off-by line, and > prerferably with the patch in-line rather than as an attachment. And it was > not submitted against development tip of xen-unstable, but against an older > stable branch which is not accepting new features. > > -- Keir > > > Whether it has no value of reference or not, one of the core members > will > > more or less give any response to it. > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > >This feature could be configured to be optional in make file configuration according to individual preference. for example, if i want to restore a vm with different configuration from mac address to vm-id, you need to override the first part of the state file and *maybe also the third part is needed to be modified such as the bytes range for mac address in qemu state section.* _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Jackson
2013-Feb-12 17:35 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
马磊 writes ("Re: [Xen-devel] [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)"):> This feature could be configured to be optional in make file configuration > according to individual preference.xl restore already takes a command line parameter to specify a replacement config file. Why is that not sufficient ?> for example, if i want to restore a vm with different configuration from mac > address to vm-id, you need to override the first part of the state file and > maybe also the third part is needed to be modified such as the bytes range for > mac address in qemu state section.You can't expect a guest to cope with its network interface changing mac address under its feet. So this isn't a good example. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
马磊
2013-Mar-11 07:29 UTC
Re: [PATCH] seperate xen checkpoint file as three parts(for xen-4.1.2)
On Wed, Feb 13, 2013 at 1:35 AM, Ian Jackson <Ian.Jackson@eu.citrix.com>wrote:> 马磊 writes ("Re: [Xen-devel] [PATCH] seperate xen checkpoint file as three > parts(for xen-4.1.2)"): > > This feature could be configured to be optional in make file > configuration > > according to individual preference. > > xl restore already takes a command line parameter to specify a > replacement config file. Why is that not sufficient ? >*Sometimes, it''s needed that modifying the third part, for instance mac address. I means that you can restore a vm having its own mac address varying with its vm-id from a three-parted state file template by * *modifying the relevant section.*> > > for example, if i want to restore a vm with different configuration from > mac > > address to vm-id, you need to override the first part of the state file > and > > maybe also the third part is needed to be modified such as the bytes > range for > > mac address in qemu state section. > > You can''t expect a guest to cope with its network interface changing > mac address under its feet. So this isn''t a good example. > > Ian. >*What do you mean by ''changing mac address under its feet''? * _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel