aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-10-03 12:31:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-10-03 12:31:44 +0200
commit21ae6369b28eec0f6f282805661e3327d55ac732 (patch)
treec3f52731ffcbdf6ad049f338a980b7e350238dd0
parent540add1be1e985d8b3e2ef22266861d28d397a8d (diff)
Tweaks to KVM command line
-rw-r--r--bbot/agent/machine.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx
index 89da981..83e64e5 100644
--- a/bbot/agent/machine.cxx
+++ b/bbot/agent/machine.cxx
@@ -373,6 +373,7 @@ namespace bbot
2, // 1>&2 (QMP goes to stdout)
qmp_out,
process_env (kvm, md, env), // Run from the machine's directory.
+ "-enable-kvm",
"-name", name + ",debug-threads=on",
"-S", // Start suspended.
"-boot", "c", // Boot from disk.
@@ -382,14 +383,16 @@ namespace bbot
// RTC settings.
//
"-rtc", "clock=vm,driftfix=slew",
+#ifdef __x86_64__
"-no-hpet",
"-global", "kvm-pit.lost_tick_policy=discard",
+#endif
// USB settings.
//
// This option should make graphical VMs usable from VNC.
//
- "-usb", "-device", "usb-tablet",
+ "-usb", "-device", "usb-kbd", "-device", "usb-tablet",
// These can override the above but not below.
//