]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Properly format disk 'debug' attribute
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2017 16:15:17 +0000 (17:15 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Nov 2017 17:50:04 +0000 (18:50 +0100)
commit1455a91b33f21806648395edf3a5dcfdce9b741f
tree82c05a55ddf17d16582e8a723df20f35625c9afd
parentbe50137aa02972f6cfefe2b404efacdf95aad27f
qemu: command: Properly format disk 'debug' attribute

Move the setup of the disk attribute to the disk source prepare function
which will allow proper usage with JSON props and move the fallback
(legacy) generating code into the block which is executed with legacy
options.

As a side-effect of this change we can clean up propagation of 'cfg'
into the command generator.

Also it's nice to see that the test output is the same even when the
value is generated in a different place.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c