Function

hv_vmx_vcpu_set_apic_address(_:_:)

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

Declaration

func hv_vmx_vcpu_set_apic_address(_ vcpu: hv_vcpuid_t, _ gpa: hv_gpaddr_t) -> hv_return_t

Parameters

vcpu

The ID of the vCPU.

gpa

The page-aligned address in the guest physical address space.

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

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