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