15#define VMW_PORT 0x5658
18#define VMW_MAGIC 0x564d5868
21#define VMW_BACKDOOR "inl %%dx, %%eax"
24#define VMW_CMD_GET_VERSION 0x0a
27#define VMW_CMD_GUESTRPC 0x1e
69 :
"=a" ( discard_a ),
"=b" ( *
ebx ),
u32 version
Driver version.
uint16_t magic
Magic signature.
static uint32_t uint32_t uint32_t * ebx
static uint32_t uint32_t uint32_t uint32_t uint32_t * edx
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
uint32_t channel
RNDIS channel.
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
static uint32_t uint32_t * product_type
#define VMW_CMD_GET_VERSION
Get VMware version.
#define VMW_MAGIC
VMware backdoor magic value.
static uint16_t uint32_t uint16_t * edxhi
#define VMW_BACKDOOR
VMware backdoor magic instruction.
static uint16_t subcommand
#define VMW_PORT
VMware backdoor I/O port.
__asm__ __volatile__(VMW_BACKDOOR :"=a"(*version), "=b"(*magic), "=c"(*product_type), "=d"(discard_d) :"0"(VMW_MAGIC), "1"(0), "2"(VMW_CMD_GET_VERSION), "3"(VMW_PORT))
#define VMW_CMD_GUESTRPC
Issue GuestRPC command.
int vmware_present(void)
Detect VMware presence.