Function

hv_vmx_read_capability(_:_:)

Returns, by reference, the VMX virtualization capabilities of the host processor.

Declaration

func hv_vmx_read_capability(_ field: hv_vmx_capability_t, _ value: UnsafeMutablePointer<UInt64>!) -> hv_return_t

Parameters

field

The capability to be determined. For a list of field IDs, see hv_vmx_capability_t.

value

On return, this argument is populated with the capability of the host processor for the specified capability. For a list of possible values, see VMX Capability Field Values.

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.

See Also

Managing Virtual Machine Control Structure (VMCS)

func hv_vmx_vcpu_read_vmcs(hv_vcpuid_t, UInt32, UnsafeMutablePointer<UInt64>!) -> hv_return_t

Returns, by reference, the current value of a virtual machine control structure (VMCS) field of a vCPU.

func hv_vmx_vcpu_write_vmcs(hv_vcpuid_t, UInt32, UInt64) -> hv_return_t

Sets the value of a virtual machine control structure (VMCS) field of a vCPU.

func hv_vmx_vcpu_set_apic_address(hv_vcpuid_t, hv_gpaddr_t) -> hv_return_t

Sets the address of the guest APIC for a vCPU in the guest physical address space of the VM.