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-02 00:14:34 +0100
commit3481121c21ea07ff83d3b05439f5442cd921e244 (patch)
tree4433bc6b67532d07d0d63c524236f2a8256841ba
parentd6dbe4290eb0c668ff57c262d7ff76ac14528e2d (diff)
downloadopenembedded-core-contrib-3481121c21ea07ff83d3b05439f5442cd921e244.tar.gz
openembedded-core-contrib-3481121c21ea07ff83d3b05439f5442cd921e244.tar.bz2
openembedded-core-contrib-3481121c21ea07ff83d3b05439f5442cd921e244.zip
runqemu: Enable virtio RNG for all platforms
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 46bbfd5fdd..a94cc651b0 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -747,6 +747,9 @@ class BaseConfig(object):
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'))
+ # Enable virtio RNG else we can run out of entropy in guests
+ self.qemu_opt += " -device virtio-rng-pci"
+
if self.serialstdio:
logger.info("Interrupt character is '^]'")
cmd = "stty intr ^]"