STRUCT MSHV_USER_MEM_REGION(9)
π struct mshv_user_mem_region(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for struct mshv_user_mem_region, and it's literally giving arguments for MSHV_SET_GUEST_MEMORY energy. π«Ά
π NAME π
struct mshv_user_mem_region β arguments for MSHV_SET_GUEST_MEMORY. that's the name, that's the assignment, periodt. π
β¨ SYNOPSIS β¨
struct mshv_user_mem_region {
__u64 size;
__u64 guest_pfn;
__u64 userspace_addr;
__u8 flags;
__u8 rsvd[7];
};
πΈ Members πΈ
sizeβ size of the memory region, in bytes. Must be aligned toMSHV_HV_PAGE_SIZE.guest_pfnβ base guest page number to map.userspace_addrβ base address of userspace memory. Must be aligned toMSHV_HV_PAGE_SIZE.flagsβ bitmask of1 << MSHV_SET_MEM_BIT_*. If(1 << MSHV_SET_MEM_BIT_UNMAP)is set, ignore other bits. πrsvdβMBZ. that's the whole entry, bestie.
π¦ Description π¦
Map or unmap a region of userspace memory to Guest Physical Addresses (GPA). Mappings can't overlap in GPA space β no cap, that's the rule. π«
To unmap, these fields must match an existing mapping. like, they have to line up with something that's already there. β
π SEE ALSO π
Kernel file ./include/uapi/linux/mshv.h β go read it, bestie:
struct mshv_create_partition(9)struct mshv_create_partition_v2(9)struct mshv_gpap_access_bitmap(9)struct mshv_root_hvcall(9)struct mshv_run_vp(9)struct mshv_get_set_vp_state(9)
mwah π this page's source/version stamp is ./include/uapi/linux, dated October 2026, and the page itself is struct mshv_user_mem_region(9). byeee, go map some memory responsibly π§ββοΈβ¨
π¦ 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