Changeset 59243 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- Jan 3, 2016 2:42:27 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104871
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/RTSystemIsInsideVM-generic.cpp
r59242 r59243 32 32 #include <iprt/system.h> 33 33 34 #include <iprt/asm-amd64-x86.h>35 #include <iprt/x86.h>36 37 34 38 35 RTDECL(bool) RTSystemIsInsideVM(void) 39 36 { 40 if (ASMHasCpuId())41 {42 if (ASMCpuId_ECX(1) & X86_CPUID_FEATURE_ECX_HVP)43 return true;44 }45 37 return false; 46 38 }
Note:
See TracChangeset
for help on using the changeset viewer.