read_guest_abs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


mwah πŸ’‹ source/version: ./arch/s390/kvm/s390; date: October 2026. bye bestie 🫢

πŸ“¦ where this page comes from