[libvirt] [PATCH] qemu: Align memory module sizes to 2MiB
Pavel Hrdina
phrdina at redhat.com
Wed Sep 23 11:37:43 UTC 2015
On Wed, Sep 23, 2015 at 01:18:02PM +0200, Peter Krempa wrote:
> My original implementation was based on a qemu version that still did
> not have all the checks in place. Using sizes that would align to odd
> megabyte increments will produce the following error:
>
> qemu-kvm: -device pc-dimm,node=0,memdev=memdimm0,id=dimm0: backend memory size must be multiple of 0x200000
> qemu-kvm: -device pc-dimm,node=0,memdev=memdimm0,id=dimm0: Device 'pc-dimm' could not be initialized
>
> Introduce an alignment retrieval function for memory devices and use it
> to align the devices separately and modify a test case to verify it.
> ---
> src/qemu/qemu_domain.c | 19 ++++++++++++++++++-
> .../qemuxml2argv-memory-hotplug-dimm.xml | 2 +-
> 2 files changed, 19 insertions(+), 2 deletions(-)
>
ACK
Pavel
More information about the libvir-list
mailing list