mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0034-launch-libvirt-Enable-kvmclock.patch

022f11
From ca34d94d13cd3177b0e914a225ca62b879b617c9 Mon Sep 17 00:00:00 2001
022f11
From: "Richard W.M. Jones" <rjones@redhat.com>
022f11
Date: Mon, 5 Aug 2013 16:50:15 +0100
022f11
Subject: [PATCH] launch: libvirt: Enable kvmclock.
022f11
022f11
This enables stable guest clocks.
022f11
022f11
(cherry picked from commit a709b10bb6f6e5cad81b9333ac7f15458f2e1ce5)
022f11
---
022f11
 src/launch-libvirt.c | 5 +++++
022f11
 1 file changed, 5 insertions(+)
022f11
022f11
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
022f11
index 80bf44c..b73f86c 100644
022f11
--- a/src/launch-libvirt.c
022f11
+++ b/src/launch-libvirt.c
022f11
@@ -846,6 +846,11 @@ construct_libvirt_xml_cpu (guestfs_h *g,
022f11
   XMLERROR (-1,
022f11
             xmlTextWriterWriteAttribute (xo, BAD_CAST "offset",
022f11
                                          BAD_CAST "utc"));
022f11
+  XMLERROR (-1, xmlTextWriterStartElement (xo, BAD_CAST "timer"));
022f11
+  XMLERROR (-1,
022f11
+            xmlTextWriterWriteAttribute (xo, BAD_CAST "name",
022f11
+                                         BAD_CAST "kvmclock"));
022f11
+  XMLERROR (-1, xmlTextWriterEndElement (xo));
022f11
   XMLERROR (-1, xmlTextWriterEndElement (xo));
022f11
 
022f11
   return 0;
022f11
-- 
022f11
1.8.3.1
022f11