[Xen-devel] help for getint domu's memory

2016-02-29 Thread
Hi,alls Xen kernel may modify domu's memory but the domu can't know.I need to save the memory before xen kernel modify it,so I want to save the memory in xen kernel sapce.But I don't know how to get the address of domu's one page memory.Could anybody tell me? Thanks! ___

[Xen-devel] For help about event channel

2016-01-11 Thread
Hi,alls, I want to achieve that the xen kernel can xend a notification to a domu, and then the domu can receive the notification and handle this notification. now,I think the event channel can achieve it.But I don't have enough information about event channel. Can who describe in detail the p

[Xen-devel] help for function xc_map_foreign_bulk() and munmap()

2015-12-07 Thread
Hi,alls, In xen-4.4.1/tools/libxc/xc_domain_save.c/xc_domain_save(),there are two function calls: region_base = xc_map_foreign_bulk(xch, dom, PROT_READ, pfn_type, pfn_err, batch); munmap(region_base, batch*PAGE_SIZE); I know the function wruncached(io_fd, live,(char*)region_base+(PAGE_SIZE*(j-

[Xen-devel] help for dirty bitmap

2015-11-15 Thread
Hi,alls As we know,xen 4+ maintains a dirty bitmap. Snapshot or migration will use this bitmap. When the guest domain changes the memory page, VMM can capture it and set dirty bitmap to 1. But I can't know how VMM to maintain this dirty bitmap. Under what circumstances VMM will set the di

[Xen-devel] questions about dirty bitmap

2015-11-09 Thread
Hi,alls As we know,xen 4+ maintains a dirty bitmap. Snapshot or migration will use this bitmap. When the guest domain changes the memory page, VMM can capture it and set dirty bitmap to 1. I want to know the position in source code of this operation. And how did this process be realized? Than

[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 python log in xen-4.4.1

2015-10-19 Thread
rint debug information into files,but I couldn't find the file I created. Thanks 2015-10-19 17:04 GMT+08:00 Wei Liu : > On Mon, Oct 19, 2015 at 10:22:52AM +0800, 高强 wrote: > > Hi,alls > > > > > > There are some python code in xen-4.4.1,and in the python code th

Re: [Xen-devel] help for python log in xen-4.4.1

2015-10-19 Thread
Hi, If you know, could you tell me the call relationship of command "xl save". Example, when I execute "xl save",which function will be called first,and then call which function? I mainly want to know which python function will be called. Thanks 2015-10-20 10:22 GMT+08:00 高

[Xen-devel] help for python log in xen-4.4.1

2015-10-19 Thread
Hi,alls There are some python code in xen-4.4.1,and in the python code there are lots debug information such as log.debug("***"),log.exception("***"),XendError("*")and so on. I want to get this kind of information but I don't know where to get them. Can someone tell me? else,I try t

[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
imilar 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 >> t

[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