Function

hv_vmx_vcpu_read_vmcs(_:_:_:)

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

Declaration

func hv_vmx_vcpu_read_vmcs(_ vcpu: hv_vcpuid_t, _ field: UInt32, _ value: UnsafeMutablePointer<UInt64>!) -> hv_return_t

Parameters

vcpu

The ID of the vCPU.

field

The ID of the VMCS field. For a list of possible values, see Virtual Machine Control Structure (VMCS) Field IDs.

value

On return, this argument is populated with the value read from the specified VMCS field.

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_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_read_capability(hv_vmx_capability_t, UnsafeMutablePointer<UInt64>!) -> hv_return_t

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

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.