File: Only-set-rtc-driftfix-slew-on-x86-architectures.patch

package info (click to toggle)
libguestfs 1%3A1.54.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 98,892 kB
  • sloc: ansic: 379,443; ml: 38,771; sh: 10,329; java: 9,631; cs: 6,377; haskell: 5,729; makefile: 5,178; python: 3,821; perl: 2,467; erlang: 2,461; ruby: 349; xml: 275; pascal: 257; javascript: 157; cpp: 10
file content (23 lines) | stat: -rw-r--r-- 776 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Hilko Bengen <bengen@debian.org>
Date: Tue, 25 Jul 2023 22:32:03 +0200
Subject: Only set -rtc driftfix=slew on x86 architectures

---
 lib/launch-direct.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index 9d0c221..ea07a28 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -644,8 +644,10 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
   /* Force exit instead of reboot on panic */
   flag ("-no-reboot");
 
+#if defined(__i386__) || defined(__x86_64__)
   /* These are recommended settings, see RHBZ#1053847. */
   arg ("-rtc", "driftfix=slew");
+#endif
   if (guestfs_int_qemu_supports (g, data->qemu_data, "-no-hpet"))
     flag ("-no-hpet");
 #if defined(__i386__) || defined(__x86_64__)