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

# hv_vm_config_set_ipa_granule(_:_:)

## Declaration

```swift
func hv_vm_config_set_ipa_granule(_ config: hv_vm_config_t, _ granule: hv_ipa_granule_t) -> hv_return_t
```

## Parameters

- `config`: Configuration.
- `granule`: Granule size.

## Return Value

Return Value HV_SUCCESS on success, an error code otherwise.

## Discussion

Discussion Set the intermediate physical address granule size in virtual machine configuration.
