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-devel

Re: [Xen-devel] migrateDevices( ) ?

To: Stefan Berger <stefanb@xxxxxxxxxx>
Subject: Re: [Xen-devel] migrateDevices( ) ?
From: tgh <wwwwww4187@xxxxxxxxxxx>
Date: Thu, 03 Jan 2008 10:35:19 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Jan 2008 18:36:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <OFC8054FBB.E2613462-ON852573C4.006752EF-852573C4.0067B60A@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <OFC8054FBB.E2613462-ON852573C4.006752EF-852573C4.0067B60A@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
hi
Thank you for your explanation
and when xen processes " live migration",xend will fork a process to do xc_linux_save,and also call the helphandler which will call migrateDevices() in three steps,that is ,migrateDevices() will copy the devices' state to the destination when the iterative pre-copying of the VM memory state is completed ,is it? or what is the tricks behind? i read DevController.py,but still not clear, and i am confused about which code is called in the destination node to cooperate with for migration, that is ,on the destination node ,which code will invoke the receiving function there? is it httpserver? then ,which function code will it call to receive ,or what to do ?i guess some functions will be called to deal with something ,then call the restore function or something, but which function is called before the restore function is called ? i am lost in it

Thanks in advance



Stefan Berger 写道:

xen-devel-bounces@xxxxxxxxxxxxxxxxxxx wrote on 01/02/2008 01:41:56 AM:

> hi
> I read the code of migration,and i am confused about the function of
> migrateDevices(), it is called for 3times,and what is the function for
> it ? could someone help me out

The purpose of this function is to enable the migration of 'external devices', i.e. this would be disk images or TPM state, from one physical machine to another while migrating a vm.

The prototype of the migrate function explains the different steps.

http://xenbits.xensource.com/xen-unstable.hg?file/2491691e3e69/tools/python/xen/xend/server/DevController.py


Stefan

>
> Thanks in advance
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel