Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Microsoft Specific

This topic is new for Visual Studio 2005 SP1.

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


Parameter Description

[in] Field

The VMCS field to write.

[in] FieldValue

The value to write to the VMCS field.


The operation succeeded.


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


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.

Intrinsic Architecture



Header file <intrin.h>

© 2015 Microsoft