]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Document qemuProcessPrepare{Domain,Host}() order
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Dec 2022 11:18:50 +0000 (12:18 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 5 Dec 2022 13:21:33 +0000 (14:21 +0100)
commit107ebe62f4d9cf620608b2a58ba874a5fc83d41a
tree0debf1c2299473c33c591cfc34abd65026e48de1
parentb62aaceff999782d0c9bf3e9d19aacc84ef49960
qemu_process: Document qemuProcessPrepare{Domain,Host}() order

The domain startup process is split into multiple phases. One of
them is preparing the domain (at that point live) XML, private
data, various paths, etc - see qemuProcessPrepareDomain(); the
other prepares the host - see qemuProcessPrepareHost(). It's
obvious that the domain XML preparation function must be called
before the host preparation function (e.g. the host preparation
might try to create a file which path is generated in the domain
preparation phase). Nevertheless, let's document this
expectation.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c