STRUCT MSHV_GPAP_ACCESS_BITMAP(9)
β¨ struct mshv_gpap_access_bitmap(9) β Kernel API Manual β¨
okay bestie, welcome to the struct mshv_gpap_access_bitmap(9) page π
this is the kernel API manual, and we're gonna get you so comfy with this lil struct. it's giving "small but important", fr fr π«Ά
πΈ NAME πΈ
struct mshv_gpap_access_bitmap β the arguments you pass for MSHV_GET_GPAP_ACCESS_BITMAP β¨ like, that's literally its whole job and it ate π
π SYNOPSIS π
struct mshv_gpap_access_bitmap {
__u8 access_type;
__u8 access_op;
__u8 rsvd[6];
__u64 page_count;
__u64 gpap_base;
__u64 bitmap_ptr;
};
look at her. iconic. no cap π
π¦ Members π¦
okay so let's meet the cast, one field at a time π
access_typeβMSHV_GPAP_ACCESS_TYPE_*. this tells the kernel which kind of access you want recorded in the bitmap. pick your type, bestie πaccess_opβMSHV_GPAP_ACCESS_OP_*. this one's the optional flex: after it retrieves all the current access states for the range, it lets you clear or set all of them. cute little bonus move β¨rsvdβ MBZ, aka "must be zero". do not touch, do not decorate, just zero it πpage_countβ the number of pages. that's it, that's the field πgpap_baseβ the base gpa page number. the starting point, the main character of the address range πbitmap_ptrβ the output buffer for the bitmap, and it needs to be at least(page_count + 7) / 8bytes. do the math, give it room, let it breathe π
β Description β
so what does this thing actually do? it retrieves a bitmap of either the ACCESSED or the DIRTY bits β whichever one you asked for with access_type β for a given range of guest memory π and as a lil optional treat, it can also clear or set those bits for you. obsessed π
π₯ SEE ALSO π₯
- Kernel file
./include/uapi/linux/mshv.h struct mshv_create_partition(9)struct mshv_create_partition_v2(9)struct mshv_user_mem_region(9)struct mshv_root_hvcall(9)struct mshv_run_vp(9)struct mshv_get_set_vp_state(9)
go read those next, iykyk ππ
and that's the whole page, bestie π§ this came from ./include/uapi/linux, dated October 2026, and it's filed under struct mshv_...ccess_bitmap(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