Disclaimer:
It does not include or execute privileged instructions nor operations because last time i uploaded the complete version of this i got banned. However i might make a V2 of this project and actually complete it with real ready to use stuff.
The project is designed to show:
- how VMX capabilities are detected (CPUID + MSRs),
- how VMXON/VMCS regions are allocated and initialized,
- how a sandbox manager could organize per-CPU virtual contexts,
- how EPT data structures can be simulated and queried in a basic way,
- how user-mode and kernel-mode communicate through IOCTLs.
- Install the Windows Driver Kit (WDK) for your Visual Studio version.
- Open the solution in Visual Studio.
- Set the configuration to x64 / Debug (recommended for testing).
- Build the
hypervisorproject. - The output
.sysdriver file will appear under:
- Build the
usermodeproject (same solution). - The output executable will appear as: usermode.exe.
- Nested virtualization enabled
- Windows 10/11 x64 inside the guest VM.
- Test signing enabled in the guest:
bcdedit /set testsigning on