From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8x7-0000Cn-Iq for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:46:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WS8x6-0005Tw-MZ for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:46:25 -0400 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:44231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WS8x6-0005Tn-BE for qemu-devel@nongnu.org; Mon, 24 Mar 2014 13:46:24 -0400 Received: by mail-ee0-f42.google.com with SMTP id d17so4709456eek.15 for ; Mon, 24 Mar 2014 10:46:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20140324165001.GG3829@work-vm> Date: Mon, 24 Mar 2014 23:16:22 +0530 Message-ID: From: Sanidhya Kashyap Content-Type: multipart/alternative; boundary=e89a8f5036f651a52904f55dd0e7 Subject: Re: [Qemu-devel] Qemu live migration code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bechir Bani Cc: qemu-devel@nongnu.org --e89a8f5036f651a52904f55dd0e7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable savevm.c will tell you about the stop time. arch_init.c (ram_save_block) will tell about the number of pages transferred. On Mon, Mar 24, 2014 at 10:51 PM, Bechir Bani wrote= : > I have a task to add trace points in the source code of Qemu. The goal is > to know the number of pages transferred at each iteration and stop time o= f > the machine as well. > > > 2014-03-24 12:50 GMT-04:00 Dr. David Alan Gilbert : > > * Bechir Bani (bechir.bani@gmail.com) wrote: >> > Hi, >> > >> > I want to know the source code of qemu which is responsible for the >> > migration of virtual machines, more precisely where the part of the co= de >> > that describes the stages of memory transfer. is that you can help me? >> >> It's split around a few files; memory is mostly in arch_init.c; >> It's something like: >> >> migration.c Overall management >> savevm.c >> qemu-file.c File buffering/bytes on the wire >> vmstate.c Structured saving of individual devices >> arch_init.c RAM special code, and a few other things >> >> What are you trying to do/change? >> >> Dave >> >> -- >> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK >> > > > > -- > *B=E9chir Bani * > **************************************************************** > *Ecole Polytechnique de Montr=E9al * > **************************************************************** > *Laboratoire DORSAL* > ***************************************************************** > *Montr=E9al - Canada* > --e89a8f5036f651a52904f55dd0e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
savevm.c will tell you about the stop time.

arch_init.c (ram_save_block) will tell about the number of pages transf= erred.


On Mon, Mar 24, 2014 at 10:51 PM, Bechir Bani <bechir.bani@gmail.com> wrote:
I have a task to add trace points in the source code of Qe= mu. The goal is to know the number of pages transferred at each iteration a= nd stop time of the machine as well.

2014-03-24 12:50 GMT-04:00 Dr. David Alan Gi= lbert <dgilbert@redhat.com>:

<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
* Bechir Bani (bechir.bani@gmail.com) wrote:
> Hi,
>
> I want to know the source code of qemu which is responsible for the > migration of virtual machines, more precisely where the part of the co= de
> that describes the stages of memory transfer. is that you can help me?=

It's split around a few files; memory is mostly in arch_init.c; It's something like:

=A0 =A0migration.c =A0 =A0 =A0 Overall management
=A0 =A0 =A0 savevm.c
=A0 =A0 =A0 =A0 qemu-file.c =A0 =A0File buffering/bytes on the wire
=A0 =A0 =A0 =A0 vmstate.c =A0 =A0 =A0Structured saving of individual device= s
=A0 =A0 =A0 =A0 arch_init.c =A0 =A0RAM special code, and a few other things=

What are you trying to do/change?

Dave

--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



--
B=E9c= hir Bani=A0
****************************************= **********************
Ecole Polytechnique de Montr=E9al=A0
**************************************************************
Laboratoire DORSAL
***= ************************************************************
Montr=E9al - Canada

--e89a8f5036f651a52904f55dd0e7--