---
title: "hv_vcpu_invalidate_tlb(_:_:_:)"
framework: Hypervisor
role: symbol
role_heading: Function
platforms: [macOS 27.0+]
path: "hypervisor/hv_vcpu_invalidate_tlb(_:_:_:)"
---

# hv_vcpu_invalidate_tlb(_:_:_:)

## Declaration

```swift
func hv_vcpu_invalidate_tlb(_ vcpu: hv_vcpu_t, _ op: hv_tlbi_op_t, _ param: UInt64) -> hv_return_t
```

## Parameters

- `vcpu`: ID of the vCPU instance.
- `op`: TLB invalidation operation to perform.
- `param`: Parameter for the TLB operation (e.g., virtual address for VAAE1IS).

## Return Value

Return Value HV_SUCCESS on success, an error code otherwise.

## Discussion

Discussion Invalidates TLB entries for the specified vCPU. Must be called by the owning thread. When EL2 is enabled for this VM, this function invalidates TLB entries for the guest hypervisor, not the nested guests.
