WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] How does "xm save & restore" are executed in the source code?

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>, "xen-api" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] How does "xm save & restore" are executed in the source code?
From: "HaikunLiu" <HaikunLiu@xxxxxxxxxxxxxxxxx>
Date: Fri, 13 Feb 2009 19:36:59 +0800
Cc:
Delivery-date: Fri, 13 Feb 2009 06:22:30 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,
      I'm reading the code about "xm save & restore". Every xm commands execution start in the python file "tools/python/xen/xm/main.py ", but I am puzzled where the xenapi are implemented? for example:
 
if serverType == SERVER_XEN_API:      
        server.xenapi.VM.save(get_single_vm(dom), savefile, checkpoint)
    else:
        server.xend.domain.save(dom, savefile, checkpoint)
 
what are the invoking sequence about "server.xenapi.VM.save" and "server.xend.domain.save" ?  which file are they implemented? I also search the python-C interfaces about "xm save & restore" in "tools/python/xen/lowlevel/xc/xc.c", but failed to find out the "pyxc_domain_save" or "pyxc_domain_restore" ?
    
Best Regards

HaikunLiu
2009-02-13
 
Cluster and Grid Computing Lab
Key Lab. of Service Computing and System, Ministry of Education
Huazhong University of Science and Technology, Wuhan, 430074, China
Mobile:13429869647
 
 
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] How does "xm save & restore" are executed in the source code?, HaikunLiu <=