Re: [Qemu-devel] [PATCH 2/2] pc: memory: Validate alignment of maxram_size to page size

2015-01-27 Thread Eric Blake
On 01/26/2015 08:31 AM, Peter Krempa wrote: > If the maxram_size is not aligned and dimm devices were added on the > command line qemu would terminate with a rather unhelpful message: > > ERROR:hw/mem/pc-dimm.c:150:pc_dimm_get_free_addr: assertion failed: > (QEMU_ALIGN_UP(address_space_size, align

[Qemu-devel] [PATCH 2/2] pc: memory: Validate alignment of maxram_size to page size

2015-01-26 Thread Peter Krempa
If the maxram_size is not aligned and dimm devices were added on the command line qemu would terminate with a rather unhelpful message: ERROR:hw/mem/pc-dimm.c:150:pc_dimm_get_free_addr: assertion failed: (QEMU_ALIGN_UP(address_space_size, align) == address_space_size) In case no dimm device was o