]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Drop two layers of nesting of memoryBackingDir
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Mar 2020 09:46:41 +0000 (10:46 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Apr 2020 13:26:17 +0000 (15:26 +0200)
commit34a59fb570dcc1b6b4b4cef1f0eb43fc6f688120
tree9713f59d1aff646a46c084548fecc0c2617a721d
parent0e4ec8697845c16385b251d73a4086c988841996
qemu: Drop two layers of nesting of memoryBackingDir

Initially introduced in v3.10.0-rc1~172.

When generating a path for memory-backend-file or -mem-path, qemu
driver will use the following pattern:

  $memoryBackingDir/libvirt/qemu/$id-$shortName

where $memoryBackingDir defaults to /var/lib/libvirt/qemu/ram but
can be overridden in qemu.conf. Anyway, the "/libvirt/qemu/" part
looks redundant, because it's already contained in the default,
or creates unnecessary nesting if overridden in qemu.conf.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
tests/qemuxml2argvdata/cpu-numa-memshared.args
tests/qemuxml2argvdata/fd-memory-no-numa-topology.args
tests/qemuxml2argvdata/fd-memory-numa-topology.args
tests/qemuxml2argvdata/fd-memory-numa-topology2.args
tests/qemuxml2argvdata/fd-memory-numa-topology3.args
tests/qemuxml2argvdata/hugepages-memaccess2.args
tests/qemuxml2argvdata/pages-dimm-discard.args
tests/qemuxml2argvdata/vhost-user-fs-fd-memory.x86_64-latest.args