Since libvirt is able to use memory-backend-{ram,file}, we were using
it unconditionally, then we realized it might break migration from
older libvirt, so we fixed the memory-backend-ram, but forgot about
memory-backend-file. This series fixes the file backend as well and
uses the memory-backend-file only when it is needed. Fortunately,
there is no verison of libvirt that would know about such
configuration and, at the same time, not use these new objects, so
there is no old libvirt from which the migration would be broken from
(due to this particular reason).
Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=1266856
Martin Kletzander (5):
qemu: Move simplification variable to begining of the function
qemu: Move memory size detection to the top of the function
qemu: Extract -mem-path building into its own function
qemu: Add -mem-path even with numa
qemu: Use memory-backing-file only when needed
src/qemu/qemu_command.c | 166 ++++++++++++---------
.../qemuxml2argv-hugepages-numa.args | 6 +-
.../qemuxml2argv-hugepages-pages6.args | 2 +-
3 files changed, 100 insertions(+), 74 deletions(-)
--
2.6.0