You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vmaware.hpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5307,13 +5307,13 @@ struct VM {
5307
5307
#if (x86 && WINDOWS)
5308
5308
// Detect a hypervisor without giving it time to react (when the hypervisor sees the vmexit, it's already too late for it, as the counter already exceeded the threshold)
5309
5309
// Uses our own software-based clock, meaning a hypervisor can't hide time by offsetting TSC or controlling any hardware timer
5310
-
double threshold = 4.0;
5310
+
double threshold = 3;
5311
5311
if (util::is_running_under_translator()) {
5312
5312
debug("TIMER: Running inside a binary translation layer");
5313
5313
return false;
5314
5314
}
5315
5315
if (util::hyper_x() != HYPERV_UNKNOWN) {
5316
-
threshold = 15.0;
5316
+
threshold = 20.0;
5317
5317
}
5318
5318
5319
5319
// prevent false sharing when triggering hypervisor exits with the intentional data race condition
0 commit comments