__vmx_vmwrite

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at __vmx_vmwrite.

Microsoft Specific**

Writes the specified value to the specified field in the current virtual machine control structure (VMCS).

unsigned char __vmx_vmwrite(   
   size_t Field,  
   size_t FieldValue  
);  

Parameters

ParameterDescription
[in] FieldThe VMCS field to write.
[in] FieldValueThe value to write to the VMCS field.

0
The operation succeeded.

1
The operation failed with extended status available in the VM-instruction error field of the current VMCS.

2
The operation failed without status available.

The __vmx_vmwrite function is equivalent to the VMWRITE machine instruction. The value of the Field parameter is an encoded field index that is described in Intel documentation. For more information, search for the document, "Intel Virtualization Technical Specification for the IA-32 Intel Architecture," document number C97063-002, at the Intel Corporation site, and then consult Appendix C of that document.

IntrinsicArchitecture
__vmx_vmwritex64

Header file <intrin.h>

Compiler Intrinsics
__vmx_vmread

Show: