kvm_get_dirty_log(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 situation
  • log β€” 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 to
  • is_dirty β€” set to '1' if any dirty pages were found πŸ”₯ so if it comes back '1', congrats, something was dirty
  • memslot β€” 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:

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