[KMTESTS] Add the ability to detect a virtual machine

This allows the tests to interact directly with hardware
CORE-20078
This commit is contained in:
Dmitry Borisov
2025-04-19 11:07:05 +06:00
committed by Stanislav Motylkov
parent 18290a7b6b
commit 4a3a446ba7
6 changed files with 129 additions and 0 deletions

View File

@@ -156,6 +156,7 @@ typedef struct
extern BOOLEAN KmtIsCheckedBuild;
extern BOOLEAN KmtIsMultiProcessorBuild;
extern BOOLEAN KmtIsVirtualMachine;
extern PCSTR KmtMajorFunctionNames[];
extern PDRIVER_OBJECT KmtDriverObject;

View File

@@ -14,6 +14,7 @@
BOOLEAN KmtIsCheckedBuild;
BOOLEAN KmtIsMultiProcessorBuild;
BOOLEAN KmtIsVirtualMachine;
PCSTR KmtMajorFunctionNames[] =
{
"Create",