Function

hv_vcpu_write_fpstate(_:_:_:)

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

Declaration

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

Parameters

vcpu

The ID of the vCPU.

buffer

A pointer to a memory buffer to be written.

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_read_fpstate(hv_vcpuid_t, UnsafeMutableRawPointer!, Int) -> hv_return_t

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