#include <kern/hv_support_kern.h>

kern/hv_support_kern.h Kernel.framework

hv_support_kern.h: machine-independent hypervisor helpers for kernel use
6 functions · 1 variable

variablehv_support_available

extern int hv_support_available

functionhv_support_init

extern void hv_support_init(void)
@function hv_support_init @abstract Initialize hypervisor facility during kernel bootstrap
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Boot-time initialization for hypervisor support. On Intel kernels built with CONFIG_VMX, probes VMX hardware-virtualization capability (vmx_hv_support) and records the result in hv_support_available; hv_get_support reports it. Called by the kernel at startup, not by kexts.

functionhv_get_support

extern int hv_get_support(void)
@function hv_get_support @abstract Indicates whether the hypervisor facility is supported on this platform @return 0 if not supported, non-zero otherwise
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Returns nonzero if hypervisor (hardware virtualization) support is available on this machine, as determined at boot by hv_support_init.

functionhv_set_task_target

extern void hv_set_task_target(void *target)
@function hv_set_task_target @abstract Associate an opaque hypervisor object with the current OS task @param target The opaque object to be associated
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Associates a hypervisor object (the Hypervisor kext's per-VM state) with the current task. The pointer is stored in the task and later passed as the target argument to handlers dispatched by hv_task_trap and to the task_destroy callback.

functionhv_set_thread_target

extern void hv_set_thread_target(void *target)
@function hv_set_thread_target @abstract Associate an opaque hypervisor object with the current OS thread @param target The opaque object to be associated
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Associates a hypervisor object (the Hypervisor kext's per-vCPU state) with the current thread. The pointer is stored in the thread and later passed as the target argument to handlers dispatched by hv_thread_trap and to the thread scheduling callbacks.

functionhv_get_task_target

extern void * hv_get_task_target(void)
@function hv_get_task_target @abstract Retrieve an opaque hypervisor object associated with the current OS task @return The associated object, or NULL if no object is associated
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Returns the hypervisor object associated with the current task by hv_set_task_target, or NULL if none.

functionhv_get_thread_target

extern void * hv_get_thread_target(void)
@function hv_get_thread_target @abstract Retrieve an opaque hypervisor object associated with the current OS thread @return The associated object, or NULL if no object is associated
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu osfmk/kern/hv_support_kext.c
Returns the hypervisor object associated with the current thread by hv_set_thread_target, or NULL if none.