From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain Tchana Subject: Domain migration source code interpretation in xl/libxl (xen-4.1.2) Date: Thu, 5 Apr 2012 22:05:53 +0200 (CEST) Message-ID: <93792556.794910.1333656353242.JavaMail.root@zmbs2.inria.fr> References: <759798916.794821.1333655343974.JavaMail.root@zmbs2.inria.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4570810394396298646==" Return-path: In-Reply-To: <759798916.794821.1333655343974.JavaMail.root@zmbs2.inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============4570810394396298646== Content-Type: multipart/alternative; boundary="----=_Part_794909_1362578652.1333656353241" ------=_Part_794909_1362578652.1333656353241 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I am trying to understand domU migration in xen-4.1.2/tools/libxl/xm_cmdimpl.c. Here are my questions: 1) Is there any documentation which explain each functions? 2) What is the difference between these two functions: int main_migrate(int argc, char **argv) and int main_migrate_receive(int argc, char **argv)? 3) In the function: static void migrate_domain(const char *domain_spec, const char *rune, const char *override_config_file) , what does: *) save_domain_core_begin(domain_spec, override_config_file, &config_data, &config_len); *)migrate_read_fixedmessage(recv_fd, migrate_receiver_banner, sizeof(migrate_receiver_banner)-1, "banner", rune); *)save_domain_core_writeconfig(send_fd, "migration stream", config_data, config_len); *)migration_child_report(child, recv_fd); *)Finally, which section of the" migrate_domain" function performs memory copy from the initial host to the target host? Please, apologize the number of questions. Thanks in advance for your answers. Alain ------=_Part_794909_1362578652.1333656353241 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: times new roman,new york,times,serif; font-size: = 12pt; color: #000000'>Hi all,
I am trying to understand domU migration i= n xen-4.1.2/tools/libxl/xm_cmdimpl.c. Here are my questions:

1) Is t= here any documentation which explain each functions?

2) What is the = difference between these two functions: int main_migrate(int argc, char **a= rgv) and int main_migrate_receive(int argc, char **argv)?

3) In the = function: static void migrate_domain(const char *domain_spec, const char *r= une, const char *override_config_file),
    what does:  
    *) save_domain_core_begin(domain_spec= , override_config_file, &config_data, &config_len);

 &n= bsp;  *)migrate_read_fixedmessage(recv_fd, migrate_receiver_banner,            &n= bsp;            = ;          sizeof(migrate_rece= iver_banner)-1,
         &n= bsp;            = ;             "= banner", rune);

    *)save_domain_core_writeconfig(se= nd_fd, "migration stream",
       &nb= sp;            =              co= nfig_data, config_len);

    *)migration_child_report(= child, recv_fd);
  
    *)Finally, which se= ction of the" migrate_domain" function performs memory copy from the initia= l host to the target host?

Please, apologize the number of questions= .

Thanks in advance for your answers.
Alain
------=_Part_794909_1362578652.1333656353241-- --===============4570810394396298646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4570810394396298646==--