Contents

vCPU Management

Create and run virtual CPUs, and manage CPU-specific registers and features.

Overview

Hypervisor creates Virtual CPUs with hv_vcpu_create(_:_:_:). Call functions that operate on the vCPU from the same thread with the exception of hv_vcpus_exit(_:_:).

Enter the vCPU by using hv_vcpu_run(_:). The function runs until the guest traps or an other thread calls hv_vcpus_exit(_:_:). On exit, hv_vcpu_run(_:) populates the hv_vcpu_exit_t with the exit reason.

Topics

Configuration

Creation and destruction

Runtime

General registers

SIMD & Floating-point registers

System registers

Trap configuration

See Also

Resource management