]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: ppc64: Align memory sizes to 256MiB blocks
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 Sep 2015 16:10:55 +0000 (18:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Sep 2015 14:09:28 +0000 (16:09 +0200)
commitbd874b6c422283ff9c07ee28b042b424e85a2398
treeae29171b403efe349eb03380df622ba74af0067b
parentc7d7ba85a6242d789ba3f4dae313e950fbb638c5
qemu: ppc64: Align memory sizes to 256MiB blocks

For some machine types ppc64 machines now require that memory sizes are
aligned to 256MiB increments (due to the dynamically reconfigurable
memory). As now we treat existing configs reasonably in regards to
migration, we can round all the sizes unconditionally. The only drawback
will be that the memory size of a VM can potentially increase by
(256MiB - 1byte) * number_of_NUMA_nodes.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1249006
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/qemuxml2argv-pseries-cpu-compat.args