Defines | Functions | Variables
vmware.h File Reference

VMware backdoor mechanism. More...

#include <stdint.h>

Go to the source code of this file.


#define VMW_PORT   0x5658
 VMware backdoor I/O port.
#define VMW_MAGIC   0x564d5868 /* "VMXh" */
 VMware backdoor magic value.
#define VMW_BACKDOOR   "inl %%dx, %%eax"
 VMware backdoor magic instruction.
#define VMW_CMD_GET_VERSION   0x0a
 Get VMware version.
#define VMW_CMD_GUESTRPC   0x1e
 Issue GuestRPC command.


static __attribute__ ((always_inline)) void vmware_cmd_get_version(uint32_t *version
 Get VMware version.


static uint32_tmagic

Detailed Description

VMware backdoor mechanism.

Definition in file vmware.h.

Define Documentation

#define VMW_PORT   0x5658

VMware backdoor I/O port.

Definition at line 15 of file vmware.h.

#define VMW_MAGIC   0x564d5868 /* "VMXh" */

VMware backdoor magic value.

Definition at line 18 of file vmware.h.

Referenced by vmware_present().

#define VMW_BACKDOOR   "inl %%dx, %%eax"

VMware backdoor magic instruction.

Definition at line 21 of file vmware.h.

#define VMW_CMD_GET_VERSION   0x0a

Get VMware version.

Definition at line 24 of file vmware.h.

#define VMW_CMD_GUESTRPC   0x1e

Issue GuestRPC command.

Definition at line 27 of file vmware.h.

Function Documentation

static __attribute__ ( (always_inline)  ) [inline, static]

Get VMware version.

Return values:
versionVMware version(?)
magicVMware magic number, if present
product_typeVMware product type

Variable Documentation

Definition at line 37 of file vmware.h.