mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
0b3509e245
The "dtb" option sets the filename for the device tree. If without this option support, "-dtb file" will be converted into <qemu:commandline> in domain XML file. For example, '-dtb /media/ram/test.dtb' will be converted into <qemu:commandline> <qemu:arg value='-dtb'/> <qemu:arg value='/media/ram/test.dtb'/> </qemu:commandline> This is not very friendly. This patchset add special <dtb> tag like <kernel> and <initrd> which is easier for user to write domain XML file. <os> <type arch='ppc' machine='ppce500v2'>hvm</type> <kernel>/media/ram/uImage</kernel> <initrd>/media/ram/ramdisk</initrd> <dtb>/media/ram/test.dtb</dtb> <cmdline>root=/dev/ram rw console=ttyS0,115200</cmdline> </os> Signed-off-by: Eric Blake <eblake@redhat.com>
7 lines
365 B
Plaintext
7 lines
365 B
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test \
|
|
/usr/bin/qemu-system-ppc -S -M ppce500v2 -m 256 -smp 1 -nographic \
|
|
-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c \
|
|
-kernel /media/ram/uImage -initrd /media/ram/ramdisk \
|
|
-append 'root=/dev/ram rw console=ttyS0,115200' -dtb /media/ram/test.dtb \
|
|
-usb -net none -serial pty -parallel none
|