STRUCT MSHV_ROOT_HVCALL(9)
β¨ struct mshv_root_hvcall(9) β¨
okay bestie, welcome to the Kernel API Manual β this is the mshv_root_hvcall struct, and no cap, it's literally the little argument bundle you hand to MSHV_ROOT_HVCALL. it's giving "permission slip for hypercalls" energy π
π NAME π
struct mshv_root_hvcall β literally just the args for MSHV_ROOT_HVCALL, that's it, that's the whole vibe π«Ά
πΈ SYNOPSIS πΈ
struct mshv_root_hvcall {
__u16 code;
__u16 reps;
__u16 in_sz;
__u16 out_sz;
__u16 status;
__u8 rsvd[6];
__u64 in_ptr;
__u64 out_ptr;
};
look at her. iconic. she's not even that big π
π¦ Members π¦
okay so here's the field-by-field breakdown, iykyk:
codeβ the hypercall code, and it's one of theHVCALL_*ones. that's the whole field. pick your fighter βrepsβ rep count things! in: it's the rep count (aka 'repcount'). out: it's the reps that actually completed (aka 'repcomp'). it must be zero (MBZ) unless this is a rep hvcall, so don't be weird about it πin_szβ the size of the input, and yes that includes the rep data. has to be<= MSHV_HV_PAGE_SIZE. don't push it π₯out_szβ the size of the output buffer. also<= MSHV_HV_PAGE_SIZE. and it must be zero (MBZ) ifout_ptris0, so keep those two in sync bestie πstatusβ in: must be zero (MBZ). out: you get anHV_STATUS_*back from the hypercall. β¨ the tea β¨rsvdβ must be zero (MBZ). it's reserved. don't touch. no notes πin_ptrβ your input data buffer (it's astruct hv_input_*). if you're using it with a partition or vp fd, the kernel populates the partition id field for you β she's helpful like that π«Άout_ptrβ the output data buffer, and it's optional, so you can absolutely skip her if you don't need her π
π SEE ALSO π
go read these next, fr fr β the kernel file ./include/uapi/linux/mshv.h plus:
struct mshv_create_partition(9)struct mshv_create_partition_v2(9)struct mshv_user_mem_region(9)struct mshv_gpap_access_bitmap(9)struct mshv_run_vp(9)struct mshv_get_set_vp_state(9)
and that's the whole page, bestie! she lives in ./include/uapi/linux, timestamped October 2026 β go forth and hypercall 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