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
hv_vcpu_config_create()hv_vcpu_config_get_feature_reg(_:_:_:)hv_vcpu_config_get_ccsidr_el1_sys_reg_values(_:_:_:)hv_vcpu_config_tOS_hv_vcpu_confighv_feature_reg_t
Creation and destruction
Runtime
hv_vcpu_run(_:)hv_vcpus_exit(_:_:)hv_vcpu_get_pending_interrupt(_:_:_:)hv_vcpu_set_pending_interrupt(_:_:_:)hv_vcpu_get_exec_time(_:_:)hv_interrupt_type_tExits