1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-11 17:10:13 +00:00
Naman Jain 7bfe3b8ea6 Drivers: hv: Introduce mshv_vtl driver
Provide an interface for Virtual Machine Monitor like OpenVMM and its
use as OpenHCL paravisor to control VTL0 (Virtual trust Level).
Expose devices and support IOCTLs for features like VTL creation,
VTL0 memory management, context switch, making hypercalls,
mapping VTL0 address space to VTL2 userspace, getting new VMBus
messages and channel events in VTL2 etc.

Co-developed-by: Roman Kisel <romank@linux.microsoft.com>
Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Co-developed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
2025-12-05 23:16:26 +00:00

26 lines
536 B
C

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _MSHV_VTL_H
#define _MSHV_VTL_H
#include <linux/mshv.h>
#include <linux/types.h>
struct mshv_vtl_run {
u32 cancel;
u32 vtl_ret_action_size;
u32 pad[2];
char exit_message[MSHV_MAX_RUN_MSG_SIZE];
union {
struct mshv_vtl_cpu_context cpu_context;
/*
* Reserving room for the cpu context to grow and to maintain compatibility
* with user mode.
*/
char reserved[1024];
};
char vtl_ret_actions[MSHV_MAX_RUN_MSG_SIZE];
};
#endif /* _MSHV_VTL_H */