mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 14:29:56 +00:00
1c6999d340
Libvirt documents that the default entropy source for the 'random' backend of a RNG device is /dev/random. Instead of storing and propagating NULL across our code and checking it in multiple places fill the default in the post parse callback and use that in the other places.
11 lines
524 B
Plaintext
11 lines
524 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S \
|
|
-M pc -m 214 -smp 1 -nographic -nodefaults \
|
|
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \
|
|
-object rng-random,id=rng0,filename=/dev/random \
|
|
-device virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x7 \
|
|
-chardev socket,id=charrng1,host=1.2.3.4,port=1234 \
|
|
-object rng-egd,chardev=charrng1,id=rng1 \
|
|
-device virtio-rng-pci,rng=rng1,bus=pci.0,addr=0x4
|