---
title: hv_gic_reset()
framework: Hypervisor
role: symbol
role_heading: Function
platforms: [macOS 15.0+]
path: hypervisor/hv_gic_reset()
---

# hv_gic_reset()

Resets the generic interrupt controller (GIC) device.

## Declaration

```swift
func hv_gic_reset() -> hv_return_t
```

## Return Value

Return Value HV_SUCCESS on success, an error code otherwise.

## Discussion

Discussion When you’re resetting the virtual machine, call this function to reset the GIC distributor, redistributor registers and the internal state of the device.
