5 asm("sidt %0" : "=m" (idtr));
6 return (0xff==idtr[5]) ? 0 : 1;
8 #elif defined (__x86_64__)
9 // only guessed, possible need to check against 0xffff?
12 unsigned char idtr[10];
13 asm("sidt %0" : "=m" (idtr));
14 return (0xff==idtr[9]) ? 0 : 1;
17 // vmware runs only on the archs above
18 int checkVmware() { return 1; }
22 // returns 0 if running inside vmware, 1 otherwise