check_gva_range(9)
β¨ check_gva_range(9) β¨
okay so bestie, welcome to the Kernel API Manual (section 9, the fancy kernel-functions one π
) β today's main character is check_gva_range, and honestly? She does exactly one thing and she does it slay.
π NAME π
check_gva_range β test a range of guest virtual addresses for accessibility π¦
like. she's the vibe check for memory ranges. no cap.
β¨ SYNOPSIS β¨
int check_gva_range (struct kvm_vcpu *vcpu , unsigned long gva , u8 ar ,
unsigned long length , enum gacc_mode mode , u8 access_key );
look at her. six arguments. iconic. π
πΈ ARGUMENTS πΈ
vcpuβ the virtual cpu π§ (her little home base)gvaβ Guest virtual address, aka where the range startsarβ Access registerlengthβ Length of test range (yes, the whole stretch you're checking, not just one address)modeβ Translation access modeaccess_keyβ access key to mach the storage keys with π
ok tiny heads-up: "mach" is literally how the original spells it β I'm not fixing it, I'm just delivering the facts with love π
π₯ SEE ALSO π₯
bestie you are gonna want the whole group chat, because these functions are all in the same friend group:
Kernel file ./arch/s390/kvm/s390/gaccess.cβ the actual hangout spot π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_gpa_range(9)kvm_s390_check_low_addr_prot_real(9)walk_guest_tables(9)__gaccess_shadow_fault(9)
go read them all. iykyk. π
that's the whole page, periodt π
shoutout to ./arch/s390/kvm/s390 for being the source, October 2026 for the date stamp, and the kernel API manual for letting her be in her section 9 era π«Ά β π
π¦ 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