Crate applevisor_sys

source ·
Expand description

Unsafe Rust bindings for the Apple Silicon Hypervisor.framework

These unsafe bindings provide access to the Apple Silicon Hypervisor.framework from Rust programs. It is recommended to use the safe version of this library available at the following locations:

Structs

The structure that describes information about an exit from the virtual CPU (vCPU) to the host.
Information about an exit from the vCPU to the host.

Enums

The structure that describes an instruction or data cache element.
Errors returned by Hypervisor functions.
The type that describes the event that triggered a guest exit to the host.
The type that defines feature registers.
The type that defines the vCPU’s interrupts.
The type that defines general registers.
The type that defines SIMD and floating-point registers.
The type of system registers.

Constants

The value that represents the memory-execute permission.
The value that represents the memory-read permission.
The value that represents the memory-write permission.

Functions

Creates a vCPU configuration object.
Returns the Cache Size ID Register (CCSIDR_EL1) values for the vCPU configuration and cache type you specify.
Gets the value of a feature register.
Creates a vCPU instance for the current thread.
Destroys the vCPU instance associated with the current thread.
Returns, by reference, the cumulative execution time of a vCPU, in nanoseconds.
Gets pending interrupts for a vCPU.
Gets the current value of a vCPU register.
Gets the current value of a vCPU SIMD and FP register.
Gets the current value of a vCPU system register.
Gets whether debug exceptions exit the guest.
Gets whether debug-register accesses exit the guest.
Gets the virtual timer mask.
Returns the vTimer offset for the vCPU ID you specify.
Starts the execution of a vCPU.
Sets pending interrupts for a vCPU.
Sets the value of a vCPU register.
Sets the value of a vCPU SIMD&FP register.
Sets the value of a vCPU system register.
Sets whether debug exceptions exit the guest.
Sets whether debug-register accesses exit the guest.
Sets or clears the virtual timer mask.
Sets the vTimer offset to a value that you provide.
Forces an immediate exit of a set of vCPUs of the VM.
Creates a VM instance for the current process.
Destroys the VM instance associated with the current process.
Returns the maximum number of vCPUs that the hypervisor supports.
Maps a region in the virtual address space of the current process into the guest physical address space of the VM.
Modifies the permissions of a region in the guest physical address space of the VM.
Unmaps a region in the guest physical address space of the VM.

Type Definitions

The type of an intermediate physical address, which is a guest physical address space of the VM.
The permissions for guest physical memory regions.
The return type of framework functions.
The value that represents an ARM SIMD and FP register.
The type that defines a vCPU configuration.
An opaque value that represents a vCPU instance.
The type that defines a virtual-machine configuration.