---
title: vCPU Management
framework: Hypervisor
role: collectionGroup
role_heading: API Collection
path: hypervisor/intel-based_mac-vcpu-management
---

# vCPU Management

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

## Topics

### Creation and destruction

- [hv_vcpu_create(_:_:_:)](hypervisor/hv_vcpu_create(_:_:_:).md)
- [hv_vcpu_destroy(_:)](hypervisor/hv_vcpu_destroy(_:).md)
- [hv_vcpu_options_t](hypervisor/hv_vcpu_options_t.md)
- [vCPU Creation Behavior](hypervisor/1447317-vcpu-creation-behavior.md)
- [hv_vcpuid_t](hypervisor/hv_vcpuid_t.md)

### Runtime

- [hv_vcpu_run_until(_:_:)](hypervisor/hv_vcpu_run_until(_:_:).md)
- [hv_vcpu_interrupt(_:_:)](hypervisor/hv_vcpu_interrupt(_:_:).md)
- [hv_vcpu_flush(_:)](hypervisor/hv_vcpu_flush(_:).md)
- [hv_vcpu_get_exec_time(_:_:)](hypervisor/hv_vcpu_get_exec_time(_:_:).md)
- [hv_vcpu_run(_:)](hypervisor/hv_vcpu_run(_:).md)
- [Execution Deadlines](hypervisor/3553338-execution-deadlines.md)

### Synchronization

- [hv_vm_sync_tsc(_:)](hypervisor/hv_vm_sync_tsc(_:).md)

### Model-Specific Registers

- [Extending vCPU Capabilities Using Model-Specific Registers](hypervisor/extending-vcpu-capabilities-using-model-specific-registers.md)
- [hv_vcpu_read_msr(_:_:_:)](hypervisor/hv_vcpu_read_msr(_:_:_:).md)
- [hv_vcpu_write_msr(_:_:_:)](hypervisor/hv_vcpu_write_msr(_:_:_:).md)
- [hv_vcpu_enable_native_msr(_:_:_:)](hypervisor/hv_vcpu_enable_native_msr(_:_:_:).md)
- [hv_vcpu_set_msr_access(_:_:_:)](hypervisor/hv_vcpu_set_msr_access(_:_:_:).md)
- [hv_vcpu_enable_managed_msr(_:_:_:)](hypervisor/hv_vcpu_enable_managed_msr(_:_:_:).md)
- [hv_msr_flags_t](hypervisor/hv_msr_flags_t.md)
- [Model-Specific Registers](hypervisor/3727856-model-specific-registers.md)
- [MSR Permissions](hypervisor/3567078-msr_permissions-enum.md)

### CPU Registers

- [hv_vcpu_read_register(_:_:_:)](hypervisor/hv_vcpu_read_register(_:_:_:).md)
- [hv_vcpu_write_register(_:_:_:)](hypervisor/hv_vcpu_write_register(_:_:_:).md)
- [hv_x86_reg_t](hypervisor/hv_x86_reg_t.md)

### Floating Point (FP) State

- [hv_vcpu_read_fpstate(_:_:_:)](hypervisor/hv_vcpu_read_fpstate(_:_:_:).md)
- [hv_vcpu_write_fpstate(_:_:_:)](hypervisor/hv_vcpu_write_fpstate(_:_:_:).md)

### Memory Affinity

- [hv_vcpu_set_space(_:_:)](hypervisor/hv_vcpu_set_space(_:_:).md)

## See Also

### Resource management

- [Memory Management](hypervisor/intel-based_mac-memory-management.md)
- [Virtual Machine Control Structure (VMCS)](hypervisor/virtual-machine-control-structure-vmcs.md)
