kvm_get_dirty_log(9)
β¨ kvm_get_dirty_log(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for kvm_get_dirty_log β literally the function that hands you a snapshot of dirty pages π
like it's sliding you the receipts of which guest memory pages got touched since last time. iykyk.
π NAME π
kvm_get_dirty_log β get a snapshot of dirty pages
no cap, that's the whole vibe. dirty pages, snapshot, go πΈ
π¦ SYNOPSIS π¦
int kvm_get_dirty_log (struct kvm *kvm , struct kvm_dirty_log *log , int
*is_dirty , struct kvm_memory_slot **memslot );
it's giving "four args, one int return" main character energy β¨
π ARGUMENTS π
kvmβ pointer to kvm instance π this is your kvm, your whole situationlogβ slot id and address to which we copy the log π like, the slot id lives here and this is also where the log gets copied tois_dirtyβ set to'1'if any dirty pages were found π₯ so if it comes back'1', congrats, something was dirtymemslotβ set to the associated memslot, always valid on success β read that again: always valid on success, periodt
π§ SEE ALSO π§
kernel file ./virt/kvm/kvm_main.c π«Ά and like, all its besties:
kvm_get_dirty_log_protect(9)kvm_vm_ioctl_get_dirty_log(9)kvm_clear_dirty_log_protect(9)kvm_get_running_vcpu(9)kvm_get_running_vcpus(9)
go read them too, they're iconic, no skips π
and that's the whole page, bestie π this lil gem lives in ./virt/kvm, dated October 2026, and it's part of the Kernel API Manual β mwah, stan π
ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms