pkvm_alloc_private_va_range(9)
π pkvm_alloc_private_va_range(9) π
okay so real talk, bestie: this is a page from the Kernel API Manual, and it's giving βsmall function, very specific jobβ energy. Let's get into it β¨
πΈ NAME πΈ
pkvm_alloc_private_va_range β Allocates a private VA range.
π¦ SYNOPSIS π¦
int pkvm_alloc_private_va_range (size_t size , unsigned long *haddr );
π ARGUMENTS π
sizeβ The size of the VA range to reserve. literally the amount of virtual address space we're asking for πhaddrβ The hypervisor virtual start address of the allocation. this is where the starting address gets handed back to you π«Ά
β¨ DESCRIPTION β¨
The private virtual address (VA) range is allocated above __io_map_next and aligned based on the order of size. that's the whole vibe: it sits above __io_map_next, and the alignment is determined by the order of size β no cap, that's the rule π₯
π RETURN π
0 on success or negative error code on failure. so like, zero means slay, negative means something went wrong π
π SEE ALSO π
- Kernel file
./arch/arm64/kvm/hyp/nvhe/mm.c
mwah π sign-off time: this cutie came from source/version ./arch/arm64/kvm/hyp/nvhe, dated October 2026, and the function is pkvm_alloc_private_va_range(9). periodt π
β¨
π¦ 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