[libvirt] [PATCH v4 1/2] qemu: add support for dtb option

Daniel P. Berrange berrange at redhat.com
Wed Mar 13 16:54:39 UTC 2013


On Wed, Mar 13, 2013 at 12:35:54PM +0800, Olivia Yin wrote:
> Signed-off-by: Olivia Yin <hong-hua.yin at freescale.com>
> 
> 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>
> ---
>  src/qemu/qemu_capabilities.c                     |    6 ++++
>  src/qemu/qemu_capabilities.h                     |    1 +
>  src/qemu/qemu_command.c                          |    6 ++++
>  tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args |    1 +
>  tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml  |   28 ++++++++++++++++++++++
>  tests/qemuxml2argvtest.c                         |    2 +
>  6 files changed, 44 insertions(+), 0 deletions(-)
>  create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.args
>  create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-ppc-dtb.xml

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list