From: "HaikunLiu" Subject: How does "xm save & restore" are executed in the source code? Date: Fri, 13 Feb 2009 19:36:59 +0800 Message-ID: <200902131936585466228@smail.hust.edu.cn> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1428485609==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-api-bounces-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org Errors-To: xen-api-bounces-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org To: "xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org" , xen-users , xen-api List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1428485609== Content-Type: multipart/alternative; boundary="=====003_Dragon624322244438_=====" This is a multi-part message in MIME format. --=====003_Dragon624322244438_===== Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit 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 Email: HaikunLiu-t80mU8W4nXhMRbgt4ZsCZ/8+0UxHXcjY@public.gmane.org --=====003_Dragon624322244438_===== Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 7bit
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
 
 
--=====003_Dragon624322244438_=====-- --===============1428485609== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1428485609==--