Simple code to demonstrate how one can use Intel(R) VT-x technology to setup Virtual Machine Control Structure (VMCS) and launch virtual machine. Virtual machine state mirrors host state.
The tool measures VM-Entry and VM-Exit turnaroound time in cycles. RDTSC instruction is used to do the measurements.
Superuser access is required to run the tool.
$ ./get_vmlatency.sh
- gcc
- kernel headers
- virtualization must be enabled in BIOS.
NOTE: Hyper-V has to be disabled to run the tools.
> .\GetVmltency.ps1
Windows does not allow to load unsigned drivers so one have to setup self signing to run vmlatency. "set-testsigning" and "clean-testsigning" commands of GetVmlatency.ps1 script to enable and cleanup testsigning.