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

# hv_gic_get_redistributor_base(_:_:)

Gets the redistributor base guest physical address for the given vCPU.

## Declaration

```swift
func hv_gic_get_redistributor_base(_ vcpu: hv_vcpu_t, _ redistributor_base_address: UnsafeMutablePointer<hv_ipa_t>) -> hv_return_t
```

## Parameters

- `vcpu`: Handle for the vCPU.
- `redistributor_base_address`: A pointer to the redistributor base guest physical address that the framework writes to upon success.

## Return Value

Return Value HV_SUCCESS on success; otherwise, an error code.

## Discussion

Discussion important: Call this method after you set the affinity of the given vCPU in its MPIDR_EL1 register.

## See Also

### Setting the GIC device configuration

- [hv_gic_config_create()](hypervisor/hv_gic_config_create().md)
- [hv_gic_config_set_distributor_base(_:_:)](hypervisor/hv_gic_config_set_distributor_base(_:_:).md)
- [hv_gic_config_set_redistributor_base(_:_:)](hypervisor/hv_gic_config_set_redistributor_base(_:_:).md)
- [hv_gic_config_set_msi_region_base(_:_:)](hypervisor/hv_gic_config_set_msi_region_base(_:_:).md)
- [hv_gic_config_set_msi_interrupt_range(_:_:_:)](hypervisor/hv_gic_config_set_msi_interrupt_range(_:_:_:).md)
- [OS_hv_gic_config](hypervisor/os_hv_gic_config.md)
- [hv_gic_config_t](hypervisor/hv_gic_config_t.md)
