<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_exit_reason_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@EA@hv_exit_reason_t"
  },
  "title" : "hv_exit_reason_t"
}
-->

# hv_exit_reason_t

The type that describes the event that triggered a guest exit to the host.

```
struct hv_exit_reason_t
```

## Topics

### Instance Properties

[`rawValue`](/documentation/Hypervisor/hv_exit_reason_t/rawValue)

The unsigned 32-bit integer that represents virual macine exit reasons.

### Initializers

[`init(_:)`](/documentation/Hypervisor/hv_exit_reason_t/init(_:))

Creates a new exit reason instance with the value you provide.

[`init(rawValue:)`](/documentation/Hypervisor/hv_exit_reason_t/init(rawValue:))

Creates a new exit reason instance with the value you provide.

### Exit Reasons

[`HV_EXIT_REASON_CANCELED`](/documentation/Hypervisor/HV_EXIT_REASON_CANCELED)

The value that identifies exits requested by exit handler on the host.

[`HV_EXIT_REASON_EXCEPTION`](/documentation/Hypervisor/HV_EXIT_REASON_EXCEPTION)

The value that identifies traps caused by the guest operations.

[`HV_EXIT_REASON_VTIMER_ACTIVATED`](/documentation/Hypervisor/HV_EXIT_REASON_VTIMER_ACTIVATED)

The value that identifies when the virtual timer enters the pending state.

[`HV_EXIT_REASON_UNKNOWN`](/documentation/Hypervisor/HV_EXIT_REASON_UNKNOWN)

The value that identifies unexpected exits.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)