read_guest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– read_guest(9) β€” bestie edition πŸ’–

okay so you're in the Kernel API Manual and the page you've pulled up is read_guest(9), and honestly? she's a little legend. let's get into it 🫢


✨ NAME ✨

read_guest β€” copy data from guest space to kernel space

like, you got data chilling in the guest and you need it over here in the kernel. that's her whole job. no cap. πŸ’…


🌸 SYNOPSIS 🌸

int read_guest (struct kvm_vcpu *vcpu , unsigned long ga , u8 ar , void
*data , unsigned long len );

look at that signature. gorgeous. (yes the spacing is exactly like that, don't @ me, i don't make the rules πŸŽ€)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • vcpu β€” the virtual cpu, aka the main character of this whole situation πŸ‘‘
  • ga β€” guest address, where the data is living rn
  • ar β€” access register, the little key to the vibes
  • data β€” destination address in kernel space, where the data is moving to 🏠
  • len β€” number of bytes to copy, so she knows exactly how much to scoop up

πŸ’œ DESCRIPTION πŸ’œ

Copy len bytes from ga (guest address) to data (kernel space). that's it, that's the whole thing. she's efficient. she's iconic. she gets it done ✨

The behaviour of read_guest is identical to read_guest_with_key, except that the PSW access key is used instead of an explicit argument. so same energy, different key delivery system. iykyk πŸ”‘


πŸ“ SEE ALSO πŸ“

the whole friend group, fr fr:

(note that kvm_s390_logical_to_effective(9) shows up twice in the original list β€” yes bestie, twice. she said "i'm important" and honestly? valid 🧚)


okay final thing β€” this page comes from ./arch/s390/kvm/s390 and it's dated October 2026, so jot that down if you're citing her. stay hydrated, read your guest memory safely, and slay πŸ’–πŸŒˆβ­

love u, bye πŸŽ€

πŸ“¦ where this page comes from