---
title: hv_vcpu_config_create()
framework: hypervisor
role: symbol
role_heading: Function
path: hypervisor/hv_vcpu_config_create()
---

# hv_vcpu_config_create()

Creates a vCPU configuration object.

## Declaration

```swift
func hv_vcpu_config_create() -> hv_vcpu_config_t
```

## Return Value

Return Value A new vCPU configuration object.

## Discussion

Discussion If your app isn’t using ARC, call os_release on a vCPU configuration object when it’s no longer needed.

## See Also

### Configuration

- [hv_vcpu_config_get_feature_reg(_:_:_:)](hypervisor/hv_vcpu_config_get_feature_reg(_:_:_:).md)
- [hv_vcpu_config_get_ccsidr_el1_sys_reg_values(_:_:_:)](hypervisor/hv_vcpu_config_get_ccsidr_el1_sys_reg_values(_:_:_:).md)
- [hv_vcpu_config_t](hypervisor/hv_vcpu_config_t.md)
- [OS_hv_vcpu_config](hypervisor/os_hv_vcpu_config.md)
- [hv_feature_reg_t](hypervisor/hv_feature_reg_t.md)
