hv_vcpu_enable_native_msr(_:_:_:)
Enables or disables a Model-Specific Register (MSR) that the VM uses natively.
Declaration
func hv_vcpu_enable_native_msr(_ vcpu: hv_vcpuid_t, _ msr: UInt32, _ enable: Bool) -> hv_return_tParameters
- vcpu:
The instance of the vCPU.
- msr:
The ID of the MSR.
- enable:
A Boolean value that if
trueindicates that the guest uses the specified MSR natively.
Return Value
HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.
Discussion
This function must be called by the owning thread..