mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8aa8d14592
commit
deba7cac00
@@ -900,9 +900,6 @@ class BaseConfig(object):
|
||||
|
||||
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'))
|
||||
|
||||
# Enable virtio RNG else we can run out of entropy in guests
|
||||
self.qemu_opt += " -device virtio-rng-pci"
|
||||
|
||||
if self.snapshot:
|
||||
self.qemu_opt += " -snapshot"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user