Blame SOURCES/0056-launch-libvirt-Disable-virtio-rng-in-libvirt-backend.patch

e76f14
From 19b262aeeb71b690099d5169eaea5d817674fdbe Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Tue, 5 Apr 2016 15:02:20 +0100
e76f14
Subject: [PATCH] launch: libvirt: Disable virtio-rng in libvirt backend until
e76f14
 we can use /dev/urandom.
e76f14
e76f14
This updates commit 9423c16607259b30985c46d04db9958ec079aa42.
e76f14
e76f14
(cherry picked from commit b2c845333f66d4d3135d3b6a8d4b992d6160bf0a)
e76f14
---
e76f14
 src/launch-libvirt.c | 7 +++++++
e76f14
 1 file changed, 7 insertions(+)
e76f14
e76f14
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
e76f14
index f9edac0..96c5913 100644
e76f14
--- a/src/launch-libvirt.c
e76f14
+++ b/src/launch-libvirt.c
e76f14
@@ -1306,6 +1306,12 @@ construct_libvirt_xml_devices (guestfs_h *g,
e76f14
     }
e76f14
 #endif
e76f14
 
e76f14
+#if 0
e76f14
+    /* This is disabled.  Pulling random numbers from /dev/random
e76f14
+     * causes the appliance to pause for long periods.  We should
e76f14
+     * use /dev/urandom, but for bogus reasons libvirt prevents that.
e76f14
+     * https://bugzilla.redhat.com/show_bug.cgi?id=1074464#c7
e76f14
+     */
e76f14
     /* Add a random number generator (backend for virtio-rng). */
e76f14
     start_element ("rng") {
e76f14
       attribute ("model", "virtio");
e76f14
@@ -1319,6 +1325,7 @@ construct_libvirt_xml_devices (guestfs_h *g,
e76f14
         //string ("/dev/urandom");
e76f14
       } end_element ();
e76f14
     } end_element ();
e76f14
+#endif
e76f14
 
e76f14
     /* virtio-scsi controller. */
e76f14
     start_element ("controller") {
e76f14
-- 
e76f14
1.8.3.1
e76f14