summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-01 22:10:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-09 12:07:32 +0100
commitb2dc9c7ee2431456a562d10d08e6416b13930189 (patch)
treed3a0da0c6a069eab26c3cdb2b0827c5ae21a3f75
parenteb1494f9da5a6b5a5453d692c9e258f1a7b0aee4 (diff)
downloadpoky-b2dc9c7ee2431456a562d10d08e6416b13930189.tar.gz
runqemu: Enable virtio RNG for all platforms
We have problems where systems simply stop booting and hang. This is due to a lack of entropy which means ssh keys and networking can't be brought up. Adding in the virtio-rng passthrough support allows host entropy to pass into the guess and avoids these hangs. This is particularly problematic after the gnutls upgrade which starts using /dev/random instead of /dev/urandom but was an issue we'd occasionally seem before that. It particualrly affected x86 and ppc machines for some reason. (From OE-Core rev: 51b001909f1856c45cf87091d6e4446c266d5786) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/runqemu3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index b9dbe97cba..fca8d1d29d 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -806,6 +806,9 @@ class BaseConfig(object):
806 806
807 self.qemu_opt = "%s %s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.qemu_opt_script, self.get('ROOTFS_OPTIONS'), self.get('QB_DTB'), self.get('QB_OPT_APPEND')) 807 self.qemu_opt = "%s %s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.qemu_opt_script, self.get('ROOTFS_OPTIONS'), self.get('QB_DTB'), self.get('QB_OPT_APPEND'))
808 808
809 # Enable virtio RNG else we can run out of entropy in guests
810 self.qemu_opt += " -device virtio-rng-pci"
811
809 if self.serialstdio: 812 if self.serialstdio:
810 logger.info("Interrupt character is '^]'") 813 logger.info("Interrupt character is '^]'")
811 cmd = "stty intr ^]" 814 cmd = "stty intr ^]"