gmap_try_fixup_minor(9)
π gmap_try_fixup_minor(9) π
okay so bestie, we're in the Kernel API Manual today and the star of the show is gmap_try_fixup_minor β lowercase, snake_case, absolutely iconic naming, no notes. she's a function, she fixes things, let's get into it π«Ά
β¨ SYNOPSIS β¨
int gmap_try_fixup_minor (struct gmap *gmap , struct guest_fault *fault
);
that's the whole signature. two args, one int coming back at you. the way that she just *returns*β¦ main character energy fr fr π
π ARGUMENTS π
gmapβ thestruct gmap *in question, aka the gmap whose fault needs to be resolved. this is the one we're fixing up. she's the subject of the whole operation πfaultβ astruct guest_fault *that describes the fault that is being resolved. like, the receipts. the whole story of what went wrong π
πΈ DESCRIPTION πΈ
so what's a minor fault? great question bestie, glad you asked π
a minor fault is a fault that can be resolved quickly within gmap. quick little fix, no big production. and like, the reason it's "minor"?? the page is already mapped β the fault is only there because of dirty/young tracking. that's it. that's the whole drama. she's not lost, she just needs a vibe check on whether she's been touched recently π¦
so gmap_try_fixup_minor rolls up, sees a minor fault, and is like "yeah I got this, no slow path needed" β¨
β RETURN β
the return value is doing a three-way thing, so pay attention bestie, this is important π
0β in case of success. we ate. π< 0β in case of error. something's wrong, and the number being negative is how she tells you π> 0β the fault could not be resolved and needs to go through the slow path. not a failure exactly, just a "this isn't a me problem, send it to the slow path" situation π’
no cap, that > 0 case is the one people skim past β but it is not an error, it just means slow path time. don't @ me.
π¦ SEE ALSO π¦
the kernel file lives at ./arch/s390/kvm/gmap/gmap.c and here's the whole friend group, all in (9) form, all exactly as written:
gmap_new(9)gmap_dispose(9)s390_replace_asce(9)gmap_age_gfn(9)gmap_unmap_gfn_range(9)gmap_2g_allowed(9)gmap_1m_allowed(9)gmap_ucas_translate(9)gmap_find_shadow(9)gmap_create_shadow(9)
go read them. iykyk π
and that's the page!! πΈ huge shoutout to the ./arch/s390/kvm/gmap crowd, dated October 2026 β mark your calendars bestie, this manual page is literally from the future πβ¨ mwah, love u, go fix some minor faults ππ
π¦ 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