gmap_unmap_gfn_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… gmap_unmap_gfn_range(9)

okay bestie, so this is a page from the Kernel API Manual and today's main character is gmap_unmap_gfn_range β€” say it with me, it's a mouthful, but we move πŸ’–

✨ NAME ✨

gmap_unmap_gfn_range β€” unmaps a whole range of guest addresses. that's it, that's the vibe. unmap. range. periodt.

πŸ¦‹ SYNOPSIS πŸ¦‹

bool gmap_unmap_gfn_range (struct gmap *gmap , struct kvm_memory_slot
*slot , gfn_t start , gfn_t end );

πŸŽ€ ARGUMENTS πŸŽ€

  • gmap β€” the gmap we're acting on ✨ like, the actual star of the show.
  • slot β€” the memslot where this range lives. the address of the neighborhood, if you will 🏑
  • start β€” the first gfn to unmap. where we start. obviously πŸ’…
  • end β€” the gfn after the last one to unmap. bestie this is the classic off-by-one trap πŸ™ˆ it's not the last gfn, it's the one after it, iykyk.

🌸 CONTEXT 🌸

so this gets called with the kvm mmu write lock held. as in, you already have the lock. no cap. 🫢

⭐ RETURN ⭐

returns false πŸ’€ that's the whole return value. false. that's it.

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./arch/s390/kvm/gmap/gmap.c and literally the whole friend group:

gmap_new(9), gmap_dispose(9), s390_replace_asce(9), gmap_age_gfn(9), gmap_try_fixup_minor(9), gmap_2g_allowed(9), gmap_1m_allowed(9), gmap_ucas_translate(9), gmap_find_shadow(9), gmap_create_shadow(9)


<div align=center>🌈 okay that's the whole page, go unmap some things, stay hydrated, and remember this dropped out of ./arch/s390/kvm/gmap back in October 2026 πŸŽ€ mwah πŸ’œ</div>

πŸ“¦ where this page comes from