aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-06 15:20:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-06 15:20:54 +0200
commit36b73f6d8a3b1d4cf3261449deb143ddb91b9d39 (patch)
tree25bea568bf0b48b71b750605ab217fc9aa2dee4a
parenta1b4a224dba40500baeb123bc77372b40e6b268d (diff)
Tweak qemu RTC options to try to avoid clock drift
-rw-r--r--bbot/agent/machine.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx
index 5ea5f1e..b77aa28 100644
--- a/bbot/agent/machine.cxx
+++ b/bbot/agent/machine.cxx
@@ -317,6 +317,12 @@ namespace bbot
",sockets=" + to_string (sockets) +
",cores=" + to_string (cores) +
",threads=" + to_string (threads)),
+ //
+ // RTC settings.
+ //
+ "-rtc", "clock=vm,driftfix=slew",
+ "-no-hpet",
+ "-global", "kvm-pit.lost_tick_policy=discard",
os,
"-vnc", "127.0.0.1:" + to_string (tc_num), // 5900 + tc_num
"-monitor", "unix:" + monitor.string () + ",server,nowait");