]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Use memory-backing-file only when needed
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 1 Oct 2015 05:34:57 +0000 (07:34 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 2 Oct 2015 14:14:26 +0000 (16:14 +0200)
commit41c2aa729f0af084ede95ee9a06219a2dd5fb5df
treebc530e4731e905f317910eacbef99fdda7796070
parenta2dba3ceb2e2639cc5fd91da81204682f27d0d8c
qemu: Use memory-backing-file only when needed

We are using memory-backing-file even when it's not needed, for example
if user requests hugepages for memory backing, but does not specify any
pagesize or memory node pinning.  This causes migrations to fail when
migrating from older libvirt that did not do this.  So similarly to
commit 7832fac84741d65e851dbdbfaf474785cbfdcf3c which does it for
memory-backend-ram, this commit makes is more generic and
backend-agnostic, so the backend is not used if there is no specific
pagesize of hugepages requested, no nodeset the memory node should be
bound to, no memory access change required, and so on.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1266856

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-hugepages-numa.args