]> xenbits.xensource.com Git - libvirt.git/commit
qemuBuildChardevCommand: Split creation of the command and setup of other objects
authorPeter Krempa <pkrempa@redhat.com>
Fri, 19 Nov 2021 16:35:21 +0000 (17:35 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 10 Dec 2021 15:37:42 +0000 (16:37 +0100)
commit1ea28569a0ed090eab6dcc5b8bb739a1fe818f4b
tree5c8a5fed14c30c4a8fce2d632ceb2dfca8533d1f
parente22c18be39b56cbe311d1e8845c84b49aed880ad
qemuBuildChardevCommand: Split creation of the command and setup of other objects

Completely seprate the creation of the commandline string from the setup
of other objects instantiated on the commandline.

'qemuBuildChardevCommand' will aggregate the setup of individual
parameters such as -add-fd and setup of TLS and the -chardev parameter
itself while the code formatting the commandline will be moved into
qemuBuildChardevStr.

'fdset' names are then stored in qemuDomainChrSourcePrivate.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h