mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +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>
28 lines
690 B
Plaintext
28 lines
690 B
Plaintext
LC_ALL=C \
|
|
PATH=/bin \
|
|
HOME=/home/test \
|
|
USER=test \
|
|
LOGNAME=test \
|
|
QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu-system-ppc \
|
|
-name QEMUGuest1 \
|
|
-S \
|
|
-M ppce500 \
|
|
-m 256 \
|
|
-smp 1,sockets=1,cores=1,threads=1 \
|
|
-uuid 49545eb3-75e1-2d0a-acdd-f0294406c99e \
|
|
-nographic \
|
|
-nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
|
server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-boot c \
|
|
-kernel /media/ram/uImage \
|
|
-initrd /media/ram/ramdisk \
|
|
-append 'root=/dev/ram rw console=ttyS0,115200' \
|
|
-dtb /media/ram/test.dtb \
|
|
-usb \
|
|
-chardev pty,id=charserial0 \
|
|
-serial chardev:charserial0 \
|
|
-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x2
|