---
title: hv_interrupt_type_t
framework: hypervisor
role: symbol
role_heading: Structure
path: hypervisor/hv_interrupt_type_t
---

# hv_interrupt_type_t

The type that defines the vCPU’s interrupts.

## Declaration

```swift
struct hv_interrupt_type_t
```

## Overview

Overview To raise interrupts on a vCPU, call hv_vcpu_set_pending_interrupt(_:_:_:) prior to calling hv_vcpu_run(_:).

## Topics

### Instance properties

- [rawValue](hypervisor/hv_interrupt_type_t/rawvalue.md)

### Initializers

- [init(_:)](hypervisor/hv_interrupt_type_t/init(_:).md)
- [init(rawValue:)](hypervisor/hv_interrupt_type_t/init(rawvalue:).md)

### Interrupt levels

- [HV_INTERRUPT_TYPE_FIQ](hypervisor/hv_interrupt_type_fiq.md)
- [HV_INTERRUPT_TYPE_IRQ](hypervisor/hv_interrupt_type_irq.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)

## See Also

### Runtime

- [hv_vcpu_run(_:)](hypervisor/hv_vcpu_run(_:).md)
- [hv_vcpus_exit(_:_:)](hypervisor/hv_vcpus_exit(_:_:).md)
- [hv_vcpu_get_pending_interrupt(_:_:_:)](hypervisor/hv_vcpu_get_pending_interrupt(_:_:_:).md)
- [hv_vcpu_set_pending_interrupt(_:_:_:)](hypervisor/hv_vcpu_set_pending_interrupt(_:_:_:).md)
- [hv_vcpu_get_exec_time(_:_:)](hypervisor/hv_vcpu_get_exec_time(_:_:).md)
- [Exits](hypervisor/exits.md)
