mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone
Blob Blame History Raw
From 1ab268dfd95cc2630862c2b3eb98937fa36f3214 Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobinso@redhat.com>
Date: Thu, 3 Oct 2013 15:06:03 +0100
Subject: [PATCH] launch: libvirt: Set attribute present=yes to enable
 kvmclock.

(cherry picked from commit 216cb004aef8ad6cb554ecdb9d7c4eb7634fe678)
---
 src/launch-libvirt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index b73f86c..8f56985 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -850,6 +850,9 @@ construct_libvirt_xml_cpu (guestfs_h *g,
   XMLERROR (-1,
             xmlTextWriterWriteAttribute (xo, BAD_CAST "name",
                                          BAD_CAST "kvmclock"));
+  XMLERROR (-1,
+            xmlTextWriterWriteAttribute (xo, BAD_CAST "present",
+                                         BAD_CAST "yes"));
   XMLERROR (-1, xmlTextWriterEndElement (xo));
   XMLERROR (-1, xmlTextWriterEndElement (xo));
 
-- 
1.8.3.1