]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: introduce qemuProcessCreatePretendCmd
authorPavel Hrdina <phrdina@redhat.com>
Tue, 22 Mar 2016 12:17:27 +0000 (13:17 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 22 Mar 2016 14:15:48 +0000 (15:15 +0100)
commit758cca88b2c6c36f02c6b0503627c3db0902212f
treedf930bce9f122adfba81e2b4d8fb79d3effa21a3
parent6e8266ade5ba8ce3a5a010dac9160f6fbeefcfaf
qemu_process: introduce qemuProcessCreatePretendCmd

This will skip few steps from qemuProcessStart in order to create only
qemu CMD.  Use a VIR_QEMU_PROCESS_START_PRETEND for all the qemuProcess*
functions called by this one to not modify or check host.

This new function will be used later on for XMLToNative API and also for
qemuxml2argvtest to make sure that both API and test uses the same code
as qemuProcessStart.

We need also update qemuProcessInit to wrap few lines of code with check
that VIR_QEMU_PROCESS_START_PRETEND that makes sense only for
qemuProcessStart.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_process.c
src/qemu/qemu_process.h