STRUCT MSHV_CREATE_PARTITION(9)
π struct mshv_create_partition(9) π
okay bestie so we're in the Kernel API Manual today, and this page is literally about struct mshv_create_partition β yes it's a struct, yes it's got two __u64 fields, yes we're gonna get through it together π«Ά
β¨ NAME β¨
struct mshv_create_partition β the arguments you hand over for MSHV_CREATE_PARTITION, no cap π«
π SYNOPSIS π
struct mshv_create_partition {
__u64 pt_flags;
__u64 pt_isolation;
};
look at her. two fields. flawless. iconic. π
πΈ Members πΈ
pt_flagsβ a bitmask of1 << MSHV_PT_BIT_*β¨ (it's giving "pick your bits, bestie")pt_isolationβ anMSHV_PT_ISOLATION_*value π
π¦ Description π¦
okay so this is the initial/v1 version, kept around purely for backward compatibility π₯ β like that one friend who's still on the old group chat and honestly? we respect her.
It returns a file descriptor that acts as a handle to a guest partition π«. and here's the thing β at this point the partition isn't initialized in the hypervisor yet. she's just vibing. not yet setup. π
Some operations must be done while she's in this state, for example setting the so-called "early" partition properties πΈ (yes, early. get there before everyone else. main character energy π).
After that, the partition can then be initialized with MSHV_INITIALIZE_PARTITION β
π reminder for the girlies: not initialized yet β ready to go. do the early stuff first, then initialize. periodt.
π SEE ALSO π
- Kernel file
./include/uapi/linux/mshv.hπ - struct
mshv_create_partition_v2(9) - struct
mshv_user_mem_region(9) - struct
mshv_gpap_access_bitmap(9) - struct
mshv_root_hvcall(9) - struct
mshv_run_vp(9) - struct
mshv_get_set_vp_state(9)
iykyk β go read all of them, bestie, they're all in the family π§
and that's the page!! brought to you by ./include/uapi/linux, October 2026 π
β¨ mwah, love u, go init that partition 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