]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add dtb option support
authorOlivia Yin <hong-hua.yin@freescale.com>
Thu, 14 Mar 2013 04:49:43 +0000 (12:49 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 19 Mar 2013 21:48:58 +0000 (15:48 -0600)
commit0b3509e245226b526aeea00cc3072f7a3fbd002e
treec1fa96d65d75cf98b6755badd74cb549a5cdaea0
parent9545acd9f0c3b5acccadfb565536930562fd8583
qemu: add dtb option support

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>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c
tests/qemuhelptest.c
tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/testutilsqemu.c