]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use predictable file names for memory-backend-file
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Nov 2017 14:20:12 +0000 (15:20 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Nov 2017 09:17:17 +0000 (10:17 +0100)
commitfec8f9c49afb479f6c3c8c388426945f2c1f099b
treed4111034edf32eb8dc8e1976ea45da3482814324
parentbb3de478a66edafd130ecca9a45a4d506ca727a0
qemu: Use predictable file names for memory-backend-file

In some cases management application needs to allocate memory for
qemu upfront and then just let qemu use that. Since we don't want
to expose path for memory-backend-file anywhere in the domain
XML, we can generate predictable paths. In this case:

  $memoryBackingDir/libvirt/qemu/$shortName/$alias

where $shortName is result of virDomainDefGetShortName().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa-memshared.args
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology.args
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology2.args
tests/qemuxml2argvdata/qemuxml2argv-fd-memory-numa-topology3.args
tests/qemuxml2argvdata/qemuxml2argv-hugepages-memaccess2.args