Function

hv_vcpu_write_fpstate

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

Declaration

hv_return_t hv_vcpu_write_fpstate(hv_vcpuid_t vcpu, void *buffer, size_t size);

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

hv_vcpu_read_fpstate

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