read_guest(9)
π 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 rnarβ access register, the little key to the vibesdataβ 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:
- Kernel file
./arch/s390/kvm/s390/gaccess.hπ kvm_s390_real_to_abs(9)_kvm_s390_logical_to_effective(9)kvm_s390_logical_to_effective(9)put_guest_lc(9)write_guest_lc(9)read_guest_lc(9)write_guest_with_key(9)write_guest(9)read_guest_with_key(9)read_guest_instr(9)write_guest_abs(9)read_guest_abs(9)write_guest_real(9)read_guest_real(9)
(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
- 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