check_gpa_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… check_gpa_range(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're in the kernel, yes it's giving big-brain energy, and yes this one is a little s390-specific gem πŸ¦‹


✨ NAME ✨

check_gpa_range β€” test a range of guest physical addresses for accessibility πŸ‘‘

like, is this chunk of guest memory actually reachable or not? that's the whole vibe check πŸ”₯


🌸 SYNOPSIS 🌸

int check_gpa_range (struct kvm *kvm , unsigned long gpa , unsigned long length , enum gacc_mode mode , u8 access_key );

that's the whole signature, no cap β€” copy it exactly, she's particular about her types πŸ’…


🫢 ARGUMENTS 🫢

  • kvm β€” the virtual machine instance, aka the main character we're doing all this for πŸ’–
  • gpa β€” guest physical address, the starting point of the range we're checking
  • length β€” length of test range, so like how far the vibe extends from gpa ✨
  • mode β€” the access mode to test, and heads up: this one's relevant for storage keys πŸŽ€
  • access_key β€” access key, which is what you use to match against the storage keys πŸ—οΈ

πŸ‘€ SEE ALSO πŸ‘€

the kernel file is ./arch/s390/kvm/s390/gaccess.c β€” go read it, iykwim 🧚

and the whole friend group, all of them literal icons:

ngl bestie, if you're poking at guest address translation on s390, this whole list is your syllabus πŸ“š don't skip it πŸ™ˆ

mwah πŸ’œ this page lives in ./arch/s390/kvm/s390, dated October 2026, and it's literally titled check_gpa_range(9) β€” slay, go forth and check those ranges 🌈⭐

πŸ“¦ where this page comes from