<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_vmx_get_msr_info(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@F@hv_vmx_get_msr_info"
  },
  "title" : "hv_vmx_get_msr_info(_:_:)"
}
-->

# hv_vmx_get_msr_info(_:_:)

Returns information about guest MSR configuration.

```
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.

## Return Value

[`HV_SUCCESS`](/documentation/Hypervisor/HV_SUCCESS) if the operation was successful, otherwise an error code specified in [`hv_return_t`](/documentation/Hypervisor/hv_return_t).

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)