kvm_age_gfn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–:

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