Skip to content

Kernel module to evade KVM's detection through RDTSC timer

License

Notifications You must be signed in to change notification settings

LWSS/kvm-rdtsc-hack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KVM RDTSC timer stabilizer

This project aims to stabilize and minimize the perceived time difference of 2 RDTSC calls and a vmexit (cpuid specifically) in programs running inside a KVM virtual machine.

You may need to configure constant_tsc_offset value, which is at 1000 by default. On AMD Ryzen platform, value of ~1600 is rather optimal. Increasing it will make the time difference lower, but there is a risk of backwards time shift, which destabilizes the running operating system.

The current goals are to improve usability (multiple KVM instance support), and efficiency (stabilized value is still rather volatile so it is impossible to consistently pass VM detection tests)

About

Kernel module to evade KVM's detection through RDTSC timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.2%
  • Makefile 10.8%