aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNuno Das Neves <[email protected]>2025-03-14 19:28:56 +0000
committerWei Liu <[email protected]>2025-03-21 18:24:22 +0000
commit621191d709b14882270dfd8ea5d7d6cdfebe2c35 (patch)
tree9b7bc2e3ecaf9cf85c469df69a3b78ffc3bc7ae9 /net/unix/af_unix.c
parenthyperv: Add definitions for root partition driver to hv headers (diff)
downloadkernel-621191d709b14882270dfd8ea5d7d6cdfebe2c35.tar.gz
kernel-621191d709b14882270dfd8ea5d7d6cdfebe2c35.zip
Drivers: hv: Introduce mshv_root module to expose /dev/mshv to VMMs
Provide a set of IOCTLs for creating and managing child partitions when running as root partition on Hyper-V. The new driver is enabled via CONFIG_MSHV_ROOT. A brief overview of the interface: MSHV_CREATE_PARTITION is the entry point, returning a file descriptor representing a child partition. IOCTLs on this fd can be used to map memory, create VPs, etc. Creating a VP returns another file descriptor representing that VP which in turn has another set of corresponding IOCTLs for running the VP, getting/setting state, etc. MSHV_ROOT_HVCALL is a generic "passthrough" hypercall IOCTL which can be used for a number of partition or VP hypercalls. This is for hypercalls that do not affect any state in the kernel driver, such as getting and setting VP registers and partition properties, translating addresses, etc. It is "passthrough" because the binary input and output for the hypercall is only interpreted by the VMM - the kernel driver does nothing but insert the VP and partition id where necessary (which are always in the same place), and execute the hypercall. Co-developed-by: Anirudh Rayabharam <[email protected]> Signed-off-by: Anirudh Rayabharam <[email protected]> Co-developed-by: Jinank Jain <[email protected]> Signed-off-by: Jinank Jain <[email protected]> Co-developed-by: Mukesh Rathor <[email protected]> Signed-off-by: Mukesh Rathor <[email protected]> Co-developed-by: Muminul Islam <[email protected]> Signed-off-by: Muminul Islam <[email protected]> Co-developed-by: Praveen K Paladugu <[email protected]> Signed-off-by: Praveen K Paladugu <[email protected]> Co-developed-by: Stanislav Kinsburskii <[email protected]> Signed-off-by: Stanislav Kinsburskii <[email protected]> Co-developed-by: Wei Liu <[email protected]> Signed-off-by: Nuno Das Neves <[email protected]> Reviewed-by: Roman Kisel <[email protected]> Link: https://lore.kernel.org/r/1741980536-3865-11-git-send-email-nunodasneves@linux.microsoft.com Signed-off-by: Wei Liu <[email protected]> Message-ID: <1741980536-3865-11-git-send-email-nunodasneves@linux.microsoft.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions