mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 13:20:20 +00:00
426dc5eb28
Some qemu arch/machine types have built in platform devices that are always implicitly available. For platform serial devices, the current code assumes that only old style -serial config can be used for these devices. Apparently though since -chardev was introduced, we can use -chardev in these cases, like this: -chardev pty,id=foo -serial chardev:foo Since -chardev enables all sorts of modern features, use this method for platform devices. Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-arm \
|
|
-name armtest \
|
|
-S \
|
|
-M virt \
|
|
-m 1024 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 496d7ea8-9739-544b-4ebd-ef08be936e6a \
|
|
-nographic \
|
|
-nodefconfig \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-armtest/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-boot c \
|
|
-kernel /arm.kernel \
|
|
-initrd /arm.initrd \
|
|
-append 'console=ttyAMA0,115200n8 rw root=/dev/vda rootwait physmap.enabled=0' \
|
|
-dtb /arm.dtb \
|
|
-device virtio-serial-device,id=virtio-serial0 \
|
|
-drive file=/arm.raw,format=raw,if=none,id=drive-virtio-disk0 \
|
|
-device virtio-blk-device,drive=drive-virtio-disk0,id=virtio-disk0 \
|
|
-device virtio-net-device,vlan=0,id=net0,mac=52:54:00:09:a4:37 \
|
|
-net user,vlan=0,name=hostnet0 \
|
|
-chardev pty,id=charserial0 \
|
|
-serial chardev:charserial0 \
|
|
-chardev pty,id=charconsole1 \
|
|
-device virtconsole,chardev=charconsole1,id=console1 \
|
|
-device virtio-balloon-device,id=balloon0 \
|
|
-object rng-random,id=objrng0,filename=/dev/random \
|
|
-device virtio-rng-device,rng=objrng0,id=rng0
|