diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2016-09-22 23:53:00 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-23 14:56:39 +0100 |
commit | deba7cac00c9ff72409f021a8aef0a4a4692864d (patch) | |
tree | 9ddecc24cf756b362a20d159da0c878e0342b6ca /scripts | |
parent | 8aa8d1459272b1158b415014b89bffbe99cc05c8 (diff) | |
download | poky-deba7cac00c9ff72409f021a8aef0a4a4692864d.tar.gz |
runqemu: Move virtio RNG to machine configuration
Not all QEMU machines (outside of those available in OE-Core) are
capable of using the virtio-rng-pci device due to various machine models
not having a pci/virtio bus. This makes it such that the use of the
'-device virtio-rng-pci' flag to QEMU is machine specific.
This patch removes the general addition of the flag to all runqemu
targets and adds the flag into the QB_OPT_APPEND for all the qemu*
machines in OE-Core that support its use (which is all of them).
(From OE-Core rev: e890c05e66a21702e9e8ccce794b74cb7f5518ed)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 658f7c8abd..2ed6f9a26e 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -900,9 +900,6 @@ class BaseConfig(object): | |||
900 | 900 | ||
901 | self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.qemu_opt_script, self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) | 901 | self.qemu_opt = "%s %s %s %s %s" % (qemu_bin, self.get('NETWORK_CMD'), self.qemu_opt_script, self.get('ROOTFS_OPTIONS'), self.get('QB_OPT_APPEND')) |
902 | 902 | ||
903 | # Enable virtio RNG else we can run out of entropy in guests | ||
904 | self.qemu_opt += " -device virtio-rng-pci" | ||
905 | |||
906 | if self.snapshot: | 903 | if self.snapshot: |
907 | self.qemu_opt += " -snapshot" | 904 | self.qemu_opt += " -snapshot" |
908 | 905 | ||