Received: from eggs.gnu.org ([2001:4830:134:3::10]:43143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVXWq-0006Fd-26 for qemu-devel@nongnu.org; Sun, 13 Oct 2013 22:05:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVXWh-0000bA-Gj for qemu-devel@nongnu.org; Sun, 13 Oct 2013 22:05:04 -0400 Received: from nm26-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.74]:22690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVXWh-0000b5-B2 for qemu-devel@nongnu.org; Sun, 13 Oct 2013 22:04:55 -0400 Message-ID: <1381716294.24512.YahooMailNeo@web163106.mail.bf1.yahoo.com> Date: Sun, 13 Oct 2013 19:04:54 -0700 (PDT) From: hellen maziku MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Kvm qemu dirty page log facility Reply-To: hellen maziku List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" =0A=0AGreetings!=0AI am new to kvm qemu and are writing a python script to = get the number of pre-copy cycles during a remote vm migration given memory= size M=A0 of a VM in MB, the page dirty rate R of a vm in MB/s. My questio= n is on =0Ahow to get the page dirty rate. Does kvm qemu provide a dirty pa= ge =0Alog facility that provides user space with a bitmap of modified pages= =0Asince the last call? And if yes, please kindly direct me on how to get = =0Astarted. I have searched and come across things like =0A=0A=0Akvm_get_di= rty_log(struct kvm *kvm, struct kvm_dirty_log *log, int *is_dirty),=A0=0A= =0AI do not know if this is the one and if yes how I can use it or ways to = implement it. =0A=0AThank you very much