__vmx_vmread

 

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_vmread.

Microsoft Specific**

Reads a specified field from the current virtual machine control structure (VMCS) and places it in the specified location.

unsigned char __vmx_vmread(  
   size_t Field,  
   size_t *FieldValue  
);  

Parameters

ParameterDescription
[in] FieldThe VMCS field to read.
[in] FieldValueA pointer to the location to store the value read from the VMCS field specified by the Field parameter.
ValueMeaning
0The operation succeeded.
1The operation failed with extended status available in the VM-instruction error field of the current VMCS.
2The operation failed without status available.

The __vmx_vmread function is equivalent to the VMREAD 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, then consult Appendix C of that document.

IntrinsicArchitecture
__vmx_vmreadx64

Header file <intrin.h>

Compiler Intrinsics
__vmx_vmwrite

Show: