guest_transl...ess_with_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… guest_transl...ess_with_key(9) β€” like, the Kernel API Manual glow-up ✨

okay so bestie, welcome to the Kernel API Manual entry for guest_transl...ess_with_key(9) β€” yes the title is truncated with ... and no we don't know why, it's giving mysterious main character energy πŸŽ€ but the actual function is guest_translate_address_with_key and she is iconic. Let's get into it fr fr.


✨ NAME ✨

guest_translate_address_with_key β€” she translates a guest logical address into a guest absolute address. that's it, that's the whole vibe πŸ’«

πŸ¦‹ SYNOPSIS πŸ¦‹

int guest_translate_address_with_key (struct kvm_vcpu *vcpu , unsigned
long gva , u8 ar , unsigned long *gpa , enum gacc_mode mode , u8
access_key );

like, copy that exactly bestie, no cap, every character matters πŸ™ˆ

🌸 ARGUMENTS 🌸

  • vcpu β€” the virtual cpu, aka the little guy we're doing all this for πŸ‘‘
  • gva β€” Guest virtual address, the address we start with πŸ’–
  • ar β€” Access register, yes it's there, yes it matters ✨
  • gpa β€” Guest physical address, this is where the translated result lands 🎯
  • mode β€” Translation access mode, the vibe check for how we're translating 🌈
  • access_key β€” the access key that gets matched against the storage key πŸ”‘

πŸ’œ DESCRIPTION πŸ’œ

so the parameter semantics are literally the same as the ones from guest_translate. same energy, same meanings, no notes 🫢

and the important part: the memory contents at the guest address are not changed. she's just translating, not touching anything. purely vibes πŸ’…

πŸ”₯ NOTE πŸ”₯

okay so this is the part you actually need to read bestie 😭 the IPTE lock is not taken during this function β€” so the caller has to take care of that themselves. no hand-holding, no auto-lock, it's giving "you're on your own, good luck, slay" πŸ’€ don't forget it fr fr.

⭐ SEE ALSO ⭐

Kernel file ./arch/s390/kvm/s390/gaccess.c, plus the whole friend group:


and that's the page bestie πŸŽ€ this one lives in ./arch/s390/kvm/s390, dated October 2026, and the header/footer both say guest_transl...ess_with_key(9) because it's committed to the truncated-name aesthetic πŸ’– mwah, go translate something πŸ¦‹βœ¨

πŸ“¦ where this page comes from