]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildMemoryBackendProps: Move @prealloc setting to backend agnostic part
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 25 May 2020 12:35:25 +0000 (14:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 1 Oct 2020 10:01:31 +0000 (12:01 +0200)
commiteda5cc7a6290d42ded07ec31aba23ddb5dd27efa
treef3c94d1a70f754de463a163e65f4c29387e74a4f
parentbfb1ab1df12e8dccfde42d1a6019bf2e628bf366
qemuBuildMemoryBackendProps: Move @prealloc setting to backend agnostic part

All three memory backends (-file, -ram and -memfd) have .prealloc
attribute. Since we are setting it only for -file, the
corresponding code lives only under if() that handles that
specific backend. But in near future we will want to set the
attribute for other backends too. Therefore, move the
corresponding code outside of the if().

This causes some .argv files to be changed, but the only change
happening there is move of the attribute (best viewed with:
'git show --color-words=.').

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
19 files changed:
src/qemu/qemu_command.c
tests/qemuxml2argvdata/hugepages-memaccess.args
tests/qemuxml2argvdata/hugepages-memaccess2.args
tests/qemuxml2argvdata/hugepages-numa-nodeset-part.args
tests/qemuxml2argvdata/hugepages-numa-nodeset.args
tests/qemuxml2argvdata/hugepages-nvdimm.x86_64-latest.args
tests/qemuxml2argvdata/hugepages-shared.args
tests/qemuxml2argvdata/memory-hotplug-dimm-addr.args
tests/qemuxml2argvdata/memory-hotplug-dimm.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-access.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-align.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-label.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-ppc64.ppc64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.x86_64-latest.args
tests/qemuxml2argvdata/memory-hotplug-nvdimm.x86_64-latest.args
tests/qemuxml2argvdata/pages-dimm-discard.args
tests/qemuxml2argvdata/user-aliases.args
tests/qemuxml2argvdata/vhost-user-fs-hugepages.x86_64-latest.args