gmap_is_shadow_valid(9)
β¨ gmap_is_shadow_valid(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual, and it's literally the vibe check function for shadow guest address spaces. yes we're in that gmap_is_shadow_valid era π
πΈ NAME πΈ
gmap_is_shadow_valid β checks if a shadow guest address space matches the given properties and is still valid. that's it, that's the whole job, no cap π«Ά
π SYNOPSIS π
bool gmap_is_shadow_valid (struct gmap *sg , union asce asce , int
edat_level );
like, look at her go π she returns a bool and she takes three things, we love a tidy signature β¨
π¦ ARGUMENTS π¦
sgβ pointer to the shadow guest address space structure. the main character of this whole function fr πasceβ the ASCE for which the shadow table is requested. yes, that ASCE πedat_levelβ the Edat level to be used for the shadow translation. pick your level, bestie π
π RETURN π
returns true if the gmap shadow is still valid and matches the given properties, and the caller can keep on using it β slay, continue, you're good π
returns false otherwise. and in that case the caller has to request a new shadow gmap. no reusing the stale one, that's giving expired vibes π
π₯ SEE ALSO π₯
- Kernel file
./arch/s390/kvm/gmap/gmap.h enum gmap_flags(9)pte_needs_unshadow(9)crste_needs_unshadow(9)
go read those too, iykyk πβ¨
π friendly reminder from your girl: the false branch is not a suggestion β go get yourself a brand new shadow gmap, periodt.
okay bestie that's the whole page, hope the vibe check passed!! this iconic lil doc lives in ./arch/s390/kvm/gmap, dated October 2026 β mwah, drink water, and don't forget to unshadow responsibly π§ππ
π¦ 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