From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBf8-0000Wh-Ca for qemu-devel@nongnu.org; Mon, 24 Mar 2014 16:40:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSBf7-0002nS-Aj for qemu-devel@nongnu.org; Mon, 24 Mar 2014 16:40:02 -0400 Received: from mail-vc0-x231.google.com ([2607:f8b0:400c:c03::231]:41747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBf7-0002ms-5r for qemu-devel@nongnu.org; Mon, 24 Mar 2014 16:40:01 -0400 Received: by mail-vc0-f177.google.com with SMTP id if17so6423606vcb.36 for ; Mon, 24 Mar 2014 13:40:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20140324165001.GG3829@work-vm> Date: Mon, 24 Mar 2014 16:40:00 -0400 Message-ID: From: Bechir Bani Content-Type: multipart/alternative; boundary=047d7ba96cf448fc8204f5603d96 Subject: Re: [Qemu-devel] Qemu live migration code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sanidhya Kashyap , qemu-devel@nongnu.org --047d7ba96cf448fc8204f5603d96 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Sanidhya, Which function in savevm.c can tell me about the stop time ? 2014-03-24 13:46 GMT-04:00 Sanidhya Kashyap : > 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 wrot= e: > >> I have a task to add trace points in the source code of Qemu. The goal i= s >> to know the number of pages transferred at each iteration and stop time = of >> 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 >>> code >>> > 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* >> > > --=20 *B=E9chir Bani * **************************************************************** *Ecole Polytechnique de Montr=E9al * **************************************************************** *Laboratoire DORSAL* ***************************************************************** *Montr=E9al - Canada* --047d7ba96cf448fc8204f5603d96 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Sanidhya,


Which funct= ion in savevm.c can tell me about the stop time ?=A0


2014-03-24 13:46 GMT-04= :00 Sanidhya Kashyap <sanidhya.iiith@gmail.com>:
savevm.c will tell you= about the stop time.

arch_init.c (ram_save_block) will tell a= bout the number of pages transferred.

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

* 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=E9chir Bani=A0<= /b>
********************************************************= ******
Ecole Polytechnique de Montr=E9al=A0
**************************************************************
Laboratoire DORSAL
***= ************************************************************
Montr=E9al - Canada




--
=
B=E9chir Bani=A0
************= **************************************************
= Ecole Polytechnique de Montr=E9al=A0
**************************************************************
Laboratoire DORSAL
***= ************************************************************
Montr=E9al - Canada
--047d7ba96cf448fc8204f5603d96--