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

# hv_vm_config_get_el2_supported(_:)

Returns a status value that indicates whether the current platform supports Exception Level 2 (EL2).

## Declaration

```swift
func hv_vm_config_get_el2_supported(_ el2_supported: UnsafeMutablePointer<Bool>) -> hv_return_t
```

## Parameters

- `el2_supported`: A pointer to a Boolean value that indicates whether the current platform supports EL2. The framework writes this value on success; otherwise, nil.

## Return Value

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

## See Also

### Nested virtualization

- [hv_vm_config_get_el2_enabled(_:_:)](hypervisor/hv_vm_config_get_el2_enabled(_:_:).md)
- [hv_vm_config_set_el2_enabled(_:_:)](hypervisor/hv_vm_config_set_el2_enabled(_:_:).md)
