From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: Re: migrateDevices( ) ? Date: Thu, 03 Jan 2008 10:35:19 +0800 Message-ID: <477C49E7.4050804@sina.com.cn> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefan Berger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org hi Thank you for your explanation and when xen processes " live migration",xend will fork a process to do=20 xc_linux_save,and also call the helphandler which will call=20 migrateDevices() in three steps,that is ,migrateDevices() will copy the=20 devices' state to the destination when the iterative pre-copying of the=20 VM memory state is completed ,is it? or what is the tricks behind? i=20 read DevController.py,but still not clear, and i am confused about which code is called in the destination node to=20 cooperate with for migration, that is ,on the destination node ,which=20 code will invoke the receiving function there? is it httpserver? then=20 ,which function code will it call to receive ,or what to do ?i guess=20 some functions will be called to deal with something ,then call the=20 restore function or something, but which function is called before the=20 restore function is called ? i am lost in it Thanks in advance Stefan Berger =E5=86=99=E9=81=93: > > xen-devel-bounces@lists.xensource.com 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 fo= r > > it ? could someone help me out > > The purpose of this function is to enable the migration of 'external=20 > devices', i.e. this would be disk images or TPM state, from one=20 > 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/py= thon/xen/xend/server/DevController.py=20 > > > > Stefan > > > > > Thanks in advance > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel