read_guest_abs(9)
read_guest_abs(9) π β¨
okay bestie, this page is from the Kernel API Manual, and it's all about read_guest_abs β the function that copies data from guest space absolute to kernel space. no cap, the name is literally the plot. π
πΈ NAME πΈ
read_guest_abs β copy data from guest space absolute to kernel space. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
int read_guest_abs (struct kvm_vcpu *vcpu , unsigned long gpa , void *data , unsigned long len );
π«Ά ARGUMENTS π«Ά
okay here's the cast, bestie:
vcpuβ virtual cpu. main character energy.gpaβ guest physical (absolute) address. not a grades GPA, keep up πdataβ destination address in kernel space.lenβ number of bytes to copy.
π DESCRIPTION π
so what it does: copies len bytes from gpa (the guest absolute address) to data (kernel space). literally the whole point. β¨
bestie, huge caveat: it is up to the caller to ensure that the entire guest memory range is valid memory before calling this function. also, guest key protection is not checked. periodt. π«Ά
It returns zero on success or -EFAULT on error.
and if an error occurs, data may have been copied partially to kernel space π β partial copy is a thing, don't act surprised.
π SEE ALSO π
Kernel file ./arch/s390/kvm/s390/gaccess.h β plus the whole cross-reference friend group:
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(9)read_guest_instr(9)write_guest_abs(9)write_guest_real(9)read_guest_real(9)
mwah π source/version: ./arch/s390/kvm/s390; date: October 2026. bye bestie π«Ά
π¦ 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