#include <arm64/hv/hv_kern_types.h> also included by <Hypervisor/Hypervisor.h>

arm64/hv/hv_kern_types.h

4 typedefs · 2 macros · 2 enums · 2 structs

macroerr_sub_hypervisor

#define err_sub_hypervisor err_sub(0xba5)

macroerr_common_hypervisor

#define err_common_hypervisor (err_local | err_sub_hypervisor)

enum(anonymous)

@enum hv_return_t @abstract Hypervisor Framework return codes @discussion These are the supported return codes for the Mach traps which may be issued by the userspace VMM.
underlying type int
HV_SUCCESS0
HV_ERROR-85377023(0xfae94001)
HV_BUSY-85377022(0xfae94002)
HV_BAD_ARGUMENT-85377021(0xfae94003)
HV_ILLEGAL_GUEST_STATE-85377020(0xfae94004)
HV_NO_RESOURCES-85377019(0xfae94005)
HV_NO_DEVICE-85377018(0xfae94006)
HV_DENIED-85377017(0xfae94007)
HV_EXISTS-85377016(0xfae94008)
HV_UNSUPPORTED-85377009(0xfae9400f)

typedefhv_return_t

typedef mach_error_t hv_return_t

enum(anonymous)

@enum hv_memory_flags_t @abstract Guest physical memory region permissions for hv_vm_map() and hv_vm_protect()
underlying type unsigned int
HV_MEMORY_READ1
HV_MEMORY_WRITE2
HV_MEMORY_EXEC4

typedefhv_memory_flags_t

typedef uint64_t hv_memory_flags_t

structhv_data_abort_notification_t

@typedef hv_data_abort_notification_t @abstract Data abort notification from the kernel. @field context context registered by the VMM @see hv_vm_monitor_data_abort. @field ipa fault IPA within the registered monitored memory range. @field value value written in case of write access. Only least significant \c access_size bytes are valid, the rest should be ignored. @field access_size access size. @field access_type type of access: HV_MEMORY_READ or HV_MEMORY_WRITE. @discussion Access faults on monitored memory regions get translated into a mach message by the kernel. The server task holding the receive right on the memory range port receives data of this type as the body of the mach message, immediately following the mach message header. @see TRAP_HV_VM_MONITOR_DATA_ABORT, @see hv_vm_monitor_data_abort_t
size 32, align 1 · packed
uint64_tcontext
uint64_tipa
uint64_tvalue
uint32_taccess_size
uint32_taccess_type

typedefhv_data_abort_notification_t

typedef struct hv_data_abort_notification_t hv_data_abort_notification_t;

structhv_vm_mem_access_msg_t

@typedef hv_vm_mem_access_msg_t @field header Mach message header. @field body hv_data_abort_notification_t structure describing the data abort. @discussion Message sent by the kernel for monitored memory access fault. @see TRAP_HV_VM_MONITOR_DATA_ABORT, @see hv_vm_monitor_data_abort_t
size 56, align 4
mach_msg_header_theader
hv_data_abort_notification_tbody

typedefhv_vm_mem_access_msg_t

typedef struct hv_vm_mem_access_msg_t hv_vm_mem_access_msg_t;