ENUM GMAP_FLAGS(9)
β¨ enum gmap_flags β flags of a gmap β¨
okay so this is from the Kernel API Manual, bestie β like the official docs, but make it make sense π
πΈ NAME πΈ
enum gmap_flags β the flags of a gmap. literally just the vibe-check bitfield for a gmap, no cap π
π¦ SYNOPSIS π¦
enum gmap_flags {
GMAP_FLAG_SHADOW ,
GMAP_FLAG_OWNS_PAGETABLES ,
GMAP_FLAG_IS_UCONTROL ,
GMAP_FLAG_ALLOW_HPAGE_1M ,
GMAP_FLAG_ALLOW_HPAGE_2G ,
GMAP_FLAG_PFAULT_ENABLED ,
GMAP_FLAG_USES_SKEYS ,
GMAP_FLAG_USES_CMM ,
GMAP_FLAG_EXPORT_ON_UNMAP
};
like, that's the whole enum, nine constants, all capitalised, all iconic π
π Constants π
GMAP_FLAG_SHADOWβ this gmap is a vsie shadow gmap. yes babes, it's giving shadow πGMAP_FLAG_OWNS_PAGETABLESβ the gmap owns, like, all the dat levels π normally this is1. it's0only for ucontrol per-cpu gmaps, because those share their page tables with the main gmap β roomies, basically π«ΆGMAP_FLAG_IS_UCONTROLβ the gmap is ucontrol (so, the main gmap or a per-cpu gmap) β¨GMAP_FLAG_ALLOW_HPAGE_1Mβ 1M hugepages are allowed for this gmap, and that's independently of the page size userspace is using. it's giving main character energy, not follower energy πGMAP_FLAG_ALLOW_HPAGE_2Gβ same deal but 2G: 2G hugepages are allowed for this gmap, independently of the page size used by userspace. big pages, big slay π₯GMAP_FLAG_PFAULT_ENABLEDβ pfault is enabled for the gmap βGMAP_FLAG_USES_SKEYSβ set if the guest uses storage keys πGMAP_FLAG_USES_CMMβ whether the guest uses CMMA π§GMAP_FLAG_EXPORT_ON_UNMAPβ whether to export guest pages when unmapping. like packing your bags on the way out π
π SEE ALSO π
Kernel file ./arch/s390/kvm/gmap/gmap.h pte_needs_unshadow(9), crste_needs_unshadow(9), gmap_is_shadow_valid(9) β go read these next, iykyk ππ
ngl bestie, the whole thing lives over in ./arch/s390/kvm/gmap β that's the source, and the version's stamped October 2026. periodt. ππ«Άπ
π¦ 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