Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h33p/kvm-rdtsc-hack
Kernel module to evade KVM's detection through RDTSC timer
https://github.com/h33p/kvm-rdtsc-hack
Last synced: 8 days ago
JSON representation
Kernel module to evade KVM's detection through RDTSC timer
- Host: GitHub
- URL: https://github.com/h33p/kvm-rdtsc-hack
- Owner: h33p
- License: gpl-2.0
- Created: 2020-05-21T23:09:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T12:31:38.000Z (almost 3 years ago)
- Last Synced: 2024-05-02T04:53:02.310Z (7 months ago)
- Language: C
- Size: 11.7 KB
- Stars: 30
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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)