Re: [Xen-devel] help for snapshot

2015-10-21 Thread Dario Faggioli
On Wed, 2015-10-21 at 10:07 +0100, Ian Campbell wrote: > I suggest that if you want help with new developments you should > target the > master branch in xen.git (which is targetted becoming 4.7) or as an > absolute minimum the latest release branch (stable-4.6). > > A lot has changed WRT migrati

Re: [Xen-devel] help for snapshot

2015-10-21 Thread Ian Campbell
On Wed, 2015-10-21 at 11:06 +0800, 高强 wrote: > Hi,alls > > I 'm modifying the source code of snapshot in xen-4.4.1. That is now 3 Xen releases ago. I suggest that if you want help with new developments you should target the master branch in xen.git (which is targetted becoming 4.7) or as an abso

Re: [Xen-devel] help for snapshot

2015-10-21 Thread Wei Liu
On Wed, Oct 21, 2015 at 11:06:07AM +0800, 高强 wrote: > Hi,alls > > I 'm modifying the source code of snapshot in xen-4.4.1. I know the memory > copy and cpu state copy are all in xc_domain_save.c--xc_domain_save(). > > But I don't sure where is the device state copy. Who can tell me the > position

[Xen-devel] help for snapshot

2015-10-20 Thread 高强
Hi,alls I 'm modifying the source code of snapshot in xen-4.4.1. I know the memory copy and cpu state copy are all in xc_domain_save.c--xc_domain_save(). But I don't sure where is the device state copy. Who can tell me the position of device copy in source code. Thanks __

[Xen-devel] help for snapshot

2015-10-20 Thread 高强
Hi,alls I know the snapshot of xen-4.4.1 is through the function xc_domain_save() to achieve.But I want to know from executing the command "xl save" to executing the function xc_domain_save(),how it is call. Has anybody can tell me the call relationship from python to C about snapshot? Thanks __

Re: [Xen-devel] help for snapshot

2015-10-13 Thread Ian Campbell
On Tue, 2015-10-13 at 09:18 +0800, 高强 wrote: > Hi,alls > > I'm modifying the source code of xen-4.4.1. Specifically, I'm modifying > the memory copy part of snapshot. I first put all memory pages to write > protection, and then rewrite the write protection exception part of the > code. After captu

[Xen-devel] help for snapshot

2015-10-13 Thread 高强
Hi,alls. in xen-4.4.1/tools/libxc/xc_domain_save.c,the function xc_domain_save(),there are two function xc_report_progress_start() and xc_report_progress_step().And so as xc_domain_restore(). I don't know the function of these two functions,has anyone can tell me? thanks

Re: [Xen-devel] help for snapshot

2015-10-13 Thread 高强
I'm modifying the source code of snapshot,in the function xc_domain_save() of xc_domain_save.c,through calling wrexact() to copy the memory pages to the local dist. I'm not sure if it is the answer you wang. 2015-10-13 13:49 GMT+08:00 Gohar Irfan : > I'm also working on a similar thing - can you

Re: [Xen-devel] help for snapshot

2015-10-12 Thread Gohar Irfan
I'm also working on a similar thing - can you please tell me how you copy the memory pages from one part of the memory to another? On Tue, Oct 13, 2015 at 10:04 AM 高强 wrote: > Hi,alls > > I'm modifying the source code of xen-4.4.1. Specifically, I'm modifying > the memory copy part of snapshot.

[Xen-devel] help for snapshot

2015-10-12 Thread 高强
Hi,alls I'm modifying the source code of xen-4.4.1. Specifically, I'm modifying the memory copy part of snapshot. I first put all memory pages to write protection, and then rewrite the write protection exception part of the code. After capture the exception then save the memory page , and all mem