Skip to contentSkip to conversation

Kvm qemu dirty page log facility

Qemu-devel hellen maziku 1 participant 1 message Oct 14, 2013

lore
Share & tools
lore
#0 lore raw

Greetings!
I 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  of a VM in MB, the page dirty rate R of a vm in MB/s. My question is on how to get the page dirty rate. Does kvm qemu provide a dirty page
log facility that provides user space with a bitmap of modified pages
since the last call? And if yes, please kindly direct me on how to get
started. I have searched and come across things like

kvm_get_dirty_log(struct kvm *kvm, struct kvm_dirty_log *log, int *is_dirty),

I do not know if this is the one and if yes how I can use it or ways to implement it.

Thank you very much