Function

hv_vcpu_read_fpstate(_:_:_:)

Returns, by reference, the current architectural x86 floating point and SIMD state of a vCPU.

Declaration

func hv_vcpu_read_fpstate(_ vcpu: hv_vcpuid_t, _ buffer: UnsafeMutableRawPointer!, _ size: Int) -> hv_return_t

Parameters

vcpu

The ID of the vCPU.

buffer

On return, this argument is populated with a pointer to the resulting memory buffer.

size

The size of the memory buffer, in bytes.

Return Value

HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

Discussion

Structure and size are defined by the XSAVE feature set of the host processor. This function must be called by the owning thread.

See Also

Accessing Floating Point (FP) State

func hv_vcpu_write_fpstate(hv_vcpuid_t, UnsafeMutableRawPointer!, Int) -> hv_return_t

Sets the architectural x86 floating point and SIMD state of a vCPU.