From dff314e22ba2d5666ba6a4f3440a7c9e1a658bb3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 25 Sep 2023 14:41:58 +0100 Subject: [PATCH] -o qemu: Set -rtc base=localtime when guest expects RTC set to localtime I didn't set the -rtc flag in the normal (UTC) case as that is the default. Reviewed-by: Laszlo Ersek (cherry picked from commit 482d75bbe5cd242576cf3f8cb9062d13d511871e) --- output/output_qemu.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/output/output_qemu.ml b/output/output_qemu.ml index ae93fb89..ad3eb897 100644 --- a/output/output_qemu.ml +++ b/output/output_qemu.ml @@ -161,6 +161,8 @@ module QEMU = struct arg_list "-device" ["vmgenid"; sprintf "guid=%s" genid; "id=vmgenid0"] ); + if not guestcaps.gcaps_rtc_utc then arg "-rtc" "base=localtime"; + arg_list "-machine" (machine_str :: (if smm then ["smm=on"] else []) @ ["accel=kvm:tcg"]);