Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
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.


Microsoft Specific

This topic is new for Visual Studio 2005 SP1.

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

unsigned char __vmx_on(
      unsigned __int64 *VmsSupportPhysicalAddress


[in] VmsSupportPhysicalAddress

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

Value Meaning


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

Intrinsic Architecture



Header file <intrin.h>

END Microsoft Specific

Community Additions

© 2015 Microsoft