kvm_age_gfn(9)
π kvm_age_gfn β clear young
okay so bestie, welcome to the Kernel API Manual β¨ β this one's about kvm_age_gfn(9), and no cap it's a little baby function with a very specific job. sit down, hydrate, let's get into it π«Ά
πΈ NAME πΈ
kvm_age_gfn β clear young π§
like, literally just that. clear young. it's giving "one job and it does it" π
β¨ SYNOPSIS β¨
bool kvm_age_gfn (struct kvm *kvm , struct kvm_gfn_range *range );
that's the whole vibe check right there π two args, one bool coming back at you.
π ARGUMENTS π
kvmβ the kvm instance π¦ like, the actual KVM you're working with. the main character, if you will.rangeβ the range of guest addresses whose young status needs to be cleared π yes bestie, the young status. it's gotta go. we're clearing it.
π CONTEXT π
so, when does this even run? it's called by KVM common code without holding the kvm mmu lock π β and that part is highkey important, so don't go assuming the lock's already in your hand. noted, remembered, internalized π«‘
β RETURN β
it hands you back true if any page in the given range was young π₯ otherwise, 0.
that's it. that's the return. short, sweet, iconic.
π SEE ALSO π
the kernel file we're repping here is:
./arch/s390/kvm/s390/s390.c
and the whole friend group of related calls π:
kvm_s390_update_topology_change_report(9)kvm_s390_cpus_from_pv(9)kvm_s390_cpus_to_pv(9)kvm_arch_vcpu_pre_fault_memory(9)kvm_test_age_gfn(9)kvm_unmap_gfn_range(9)
go read those too, iykyk ππ
π reminder bestie: range is about guest addresses and their young status getting cleared. don't get it twisted.
and that's a wrap, gorgeous πΈ this lil page came from ./arch/s390/kvm/s390, dated October 2026, and it's literally titled kvm_age_gfn(9) β so you know exactly where it lives π bye bestie, go clear some young ππ¦β¨
π¦ 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