* [Qemu-devel] Get the dirty bitmap of a whole VM
@ 2014-02-13 17:06 Vincent KHERBACHE
0 siblings, 0 replies; only message in thread
From: Vincent KHERBACHE @ 2014-02-13 17:06 UTC (permalink / raw)
To: qemu-devel
Hi all,
I'm trying to calculate the dirty bytes rate of a VM by traveling the
corresponding memory dirty bitmaps.
I get a bitmap from KVM kernel space using the following ioctl call :
kvm_vm_ioctl(s, KVM_GET_DIRTY_LOG, &d);
Also, I'm getting the bitmap for each memory slot inside the KVMState
object, but I obtain strange results..
I reused some code from the 'kvm_physical_sync_dirty_bitmap' function
but I wonder if I should really use each available memory slot ? or if
there is a way to obtain the whole 'MemoryRegionSection' of a VM ?
For instance, there is roughly what I do :
/******************************/
KVMState *s = kvm_state;
KVMDirtyLog d;
for (int i=0; i <=; i++) {
if (&s->slots[i]->memory_size > 0) {
d.slot = &s->slots[i]->slot;
kvm_vm_ioctl(s, KVM_GET_DIRTY_LOG, &d);
}
}
/******************************/
Any help/advice would be welcome.
Thanks,
--
Vincent KHERBACHE
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-13 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13 17:06 [Qemu-devel] Get the dirty bitmap of a whole VM Vincent KHERBACHE
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.