---
title: "hv_vmx_get_msr_info(_:_:)"
framework: hypervisor
role: symbol
role_heading: Function
path: "hypervisor/hv_vmx_get_msr_info(_:_:)"
---

# hv_vmx_get_msr_info(_:_:)

Returns information about guest MSR configuration.

## Declaration

```swift
func hv_vmx_get_msr_info(_ field: hv_vmx_msr_info_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t
```

## Parameters

- `field`: The ID of the MSR to examine.
- `value`: A pointer to the info field value written by Hypervisor on a successful operation.

## Mentioned in

Extending vCPU Capabilities Using Model-Specific Registers

## Return Value

Return Value HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

## See Also

### Capabilities

- [hv_vmx_read_capability(_:_:)](hypervisor/hv_vmx_read_capability(_:_:).md)
- [hv_vmx_capability_t](hypervisor/hv_vmx_capability_t.md)
- [VMX Capabilities](hypervisor/1469645-vmx-capabilities.md)
- [hv_vmx_msr_info_t](hypervisor/hv_vmx_msr_info_t.md)
- [MSR Information Fields](hypervisor/3567084-msr-information-fields.md)
