]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Drop needless check in qemuProcessNeedMemoryBackingPath()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 5 Feb 2021 12:54:26 +0000 (13:54 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 May 2021 15:47:58 +0000 (17:47 +0200)
commit655f67c68aec5f7df43bcb915a4e40b970e8a2c0
tree8dee501812215322b0c3346101aa3bd524e6d8af
parent4d779874ef4c9a9ece57f068323df15588f1edd5
qemu_process: Drop needless check in qemuProcessNeedMemoryBackingPath()

The aim of this function is to return whether domain definition
and/or memory device that user intents to hotplug needs a private
path inside cfg->memoryBackingDir. The rule for the memory device
that's being hotplug includes checking whether corresponding
guest NUMA node needs memoryBackingDir. Well, while the rationale
behind makes sense it is not necessary to check for that really -
just a few lines above every guest NUMA node was checked exactly
for that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_process.c