Permalink
Browse files

launch: direct: limit kvm-pit.lost_tick_policy to x86

This QEMU property is specific to x86/x86_64, so add it only on these
architectures.
  • Loading branch information...
ptoscano committed Sep 1, 2017
1 parent 5f43b30 commit 5b60dd4eff02f48d344bcdad0d4bad4676ca9168
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/launch-direct.c
@@ -519,8 +519,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
arg ("-rtc", "driftfix=slew");
if (guestfs_int_qemu_supports (g, data->qemu_data, "-no-hpet"))
flag ("-no-hpet");
#if defined(__i386__) || defined(__x86_64__)
if (guestfs_int_version_ge (&data->qemu_version, 1, 3, 0))
arg ("-global", "kvm-pit.lost_tick_policy=discard");
#endif
/* UEFI (firmware) if required. */
if (guestfs_int_get_uefi (g, &uefi_code, &uefi_vars, &uefi_flags) == -1)

0 comments on commit 5b60dd4

Please sign in to comment.