Hi all, I''m reading Remus part of Xen 4.x code and now I can find the entry code of Primary host, which is located in tools/remus directory. But I cannot find the entry code of backup host. Which codes will the backup host execute when the primary code send header of a VM? I can only find some codes are executed in tools/libxc/xc_domain_restore.c, which restores the backup VM as soon as the Primary VM stops. When the backup host synchronizing the state of primary VM (including machine state, memory state and disk state), which part of code will be execute? Thanks. -- Regards, Chunqi Li Department of Computer Science School of EECS Peking University Beijing, China _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Shriram Rajagopalan
2012-Feb-16 16:49 UTC
Re: Where''s the entry code of backup host in Remus?
Look for the entry point into the live migration code, on the receiver host. Start with tools/python/xen/xend/XendCheckpoint.py def restore(xd, fd, dominfo = None, paused = False, relocating = False) --forks off xc_restore and waits for it to complete. ------xc_restore calls xc_domain_restore hope that helps. cheers shriram On Thu, Feb 16, 2012 at 3:13 AM, 李春奇 <Chunqi Li> <yzt356@gmail.com> wrote:> Hi all, > I''m reading Remus part of Xen 4.x code and now I can find the entry code > of Primary host, which is located in tools/remus directory. But I cannot > find the entry code of backup host. Which codes will the backup host > execute when the primary code send header of a VM? I can only find some > codes are executed in tools/libxc/xc_domain_restore.c, which restores the > backup VM as soon as the Primary VM stops. When the backup > host synchronizing the state of primary VM (including machine state, memory > state and disk state), which part of code will be execute? > > Thanks. > > -- > Regards, Chunqi Li > Department of Computer Science > School of EECS > Peking University > Beijing, China > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, Feb 17, 2012 at 12:49 AM, Shriram Rajagopalan <rshriram@cs.ubc.ca>wrote:> Look for the entry point into the live migration code, on the receiver > host. > > Start with tools/python/xen/xend/XendCheckpoint.py > def restore(xd, fd, dominfo = None, paused = False, relocating = False) > --forks off xc_restore and waits for it to complete. > ------xc_restore calls xc_domain_restore > > > hope that helps. > > cheers > shriram > > On Thu, Feb 16, 2012 at 3:13 AM, 李春奇 <Chunqi Li> <yzt356@gmail.com> wrote: > >> Hi all, >> I''m reading Remus part of Xen 4.x code and now I can find the entry code >> of Primary host, which is located in tools/remus directory. But I cannot >> find the entry code of backup host. Which codes will the backup host >> execute when the primary code send header of a VM? I can only find some >> codes are executed in tools/libxc/xc_domain_restore.c, which restores the >> backup VM as soon as the Primary VM stops. When the backup >> host synchronizing the state of primary VM (including machine state, memory >> state and disk state), which part of code will be execute? >> >> Thanks. >> >> -- >> Regards, Chunqi Li >> Department of Computer Science >> School of EECS >> Peking University >> Beijing, China >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> >> >I find it, thanks very much. -- Chunqi Li Department of Computer Science School of EECS Peking University Beijing, China _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel