---
title: "hv_vcpu_config_get_feature_reg(_:_:_:)"
framework: hypervisor
role: symbol
role_heading: Function
path: "hypervisor/hv_vcpu_config_get_feature_reg(_:_:_:)"
---

# hv_vcpu_config_get_feature_reg(_:_:_:)

Gets the value of a feature register.

## Declaration

```swift
func hv_vcpu_config_get_feature_reg(_ config: hv_vcpu_config_t, _ feature_reg: hv_feature_reg_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t
```

## Parameters

- `config`: The vCPU configuration.
- `feature_reg`: The ID of the feature register.
- `value`: The value of feature_reg on output. Undefined if the call doesn’t succeed.

## Return Value

Return Value HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

## See Also

### Configuration

- [hv_vcpu_config_create()](hypervisor/hv_vcpu_config_create().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)
