]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: move memory size align to qemuProcessPrepareDomain()
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 18 Nov 2020 18:12:51 +0000 (15:12 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 3 Dec 2020 20:19:35 +0000 (17:19 -0300)
commit5a34d0667decd233f4f2319f742920dc52073d4e
tree097651a11ea91e874f94ede07a94cf5af895c35f
parent3bb9ed8bc272d96a3bcdc1ff504c1dd000e1e1f0
qemu: move memory size align to qemuProcessPrepareDomain()

qemuBuildCommandLine() is calling qemuDomainAlignMemorySizes(),
which is an operation that changes live XML and domain and has
little to do with the command line build process.

Move it to qemuProcessPrepareDomain() where we're supposed to
make live XML and domain changes before launch. qemuProcessStart()
is setting VIR_QEMU_PROCESS_START_NEW if !migrate && !snapshot,
same conditions used in qemuBuildCommandLine() to call
qemuDomainAlignMemorySizes(), making this change seamless.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_command.c
src/qemu/qemu_process.c