__gaccess_shadow_fault(9)
π __gaccess_shadow_fault(9) π
okay so bestie, welcome to the Kernel API Manual page for __gaccess_shadow_fault(9) β this is the little kernel icon that handles a fault on a shadow page table, and weβre gonna read it together like a group chat β¨.
β¨ NAME β¨
__gaccess_shadow_fault β Handle fault on a shadow page table. literally what it says on the tin, bestie π
.
πΈ SYNOPSIS πΈ
int __gaccess_shadow_fault (struct kvm_vcpu *vcpu , struct gmap *sg ,
gpa_t saddr , union mvpg_pei *datptr , bool wr );
π ARGUMENTS π
this is the cast of characters, and every single one matters π«Ά:
vcpuβ Virtual cpu that triggered the action. the main character who tripped the fault π.sgβ The shadow guest address space structure. iconic shadow gmap energy.saddrβ Faulting address in the shadow gmap. the exact spot where the drama is happening.datptrβ Will contain the address of the faulting DAT table entry, or of the valid leaf, plus some flags. so it comes back holding the receipt π§Ύβ¨.wrβ Whether this is a write access. write or not, thatβs the question π .
π₯ RETURN π₯
the return values are the vibe check, no cap:
0if the shadow fault was successfully resolved β slay, we fixed it π> 0(pgm exception code) on exceptions while faulting β so greater than zero, and it comes with a pgm exception code.-EAGAINif the caller can retry immediately β okay bestie, run it back π-EFAULTwhen accessing invalid guest addresses β invalid guest address said absolutely not π-ENOMEMif out of memory β the memory budget is giving empty π
π¦ SEE ALSO π¦
Kernel file ./arch/s390/kvm/s390/gaccess.c β and the whole related squad is:
guest_translate_gva(9)guest_range_to_gpas(9)__cmpxchg_with_key(9)cmpxchg_guest_abs_with_key(9)guest_translate_address_with_key(9)check_gva_range(9)check_gpa_range(9)kvm_s390_check_low_addr_prot_real(9)walk_guest_tables(9)
mwah π thatβs the whole page, bestie β from ./arch/s390/kvm/s390, dated October 2026. go handle those shadow faults, icon πβ¨
π¦ 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