__vmx_on

 

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

Microsoft Specific**

Activates virtual machine extensions (VMX) operation in the processor.

unsigned char __vmx_on(  
   unsigned __int64 *VmsSupportPhysicalAddress  
);  

Parameters

[in] VmsSupportPhysicalAddress
A pointer to a 64-bit physical address that points to a virtual-machine control structure (VMCS).

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_on function corresponds to the VMXON machine instruction. This function supports the interaction of a host's virtual machine monitor with a guest operating system and its applications. 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.

IntrinsicArchitecture
__vmx_onx64

Header file <intrin.h>

Compiler Intrinsics

Show: