KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /lib/modules/2.6.18-419.el5/build/include/asm-i386/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/modules/2.6.18-419.el5/build/include/asm-i386/virtext.h
#ifndef _ASM_I386_VIRTEX_H
#define _ASM_I386_VIRTEX_H

static inline int on_a_virt_guest(void)
{
	unsigned int eax, ebx, ecx, edx;
	char signature[13];

	cpuid(0x40000000, &eax, &ebx, &ecx, &edx);
	memcpy(signature + 0, &ebx, 4);
	memcpy(signature + 4, &ecx, 4);
	memcpy(signature + 8, &edx, 4);
	signature[12] = 0;

	if (strcmp(signature, "KVMKVMKVM") == 0)
		return 1;

	if (strcmp(signature, "XenVMMXenVMM") == 0)
		return 1;

	return 0;
}

#endif

Anon7 - 2021