Re: [Qemu-devel] [PATCH] pc-dimm: fix checking for backend memory size

2015-01-19 Thread Zhu Guihua
On Mon, 2015-01-19 at 16:55 +0100, Igor Mammedov wrote: > On Fri, 16 Jan 2015 13:45:06 +0800 > Zhu Guihua wrote: > > > If hot add 100MiB memory like this: > > (monitor) object_add memory-backend-ram,id=ram0,size=100M > > (monitor) device_add pc-dimm,id=d0,memdev=ram0 > > > > The hotplug operatio

Re: [Qemu-devel] [PATCH] pc-dimm: fix checking for backend memory size

2015-01-19 Thread Igor Mammedov
On Fri, 16 Jan 2015 13:45:06 +0800 Zhu Guihua wrote: > If hot add 100MiB memory like this: > (monitor) object_add memory-backend-ram,id=ram0,size=100M > (monitor) device_add pc-dimm,id=d0,memdev=ram0 > > The hotplug operation will faile, and the guest will print error message: > Section-unaligne

Re: [Qemu-devel] [PATCH] pc-dimm: fix checking for backend memory size

2015-01-15 Thread Zhu Guihua
Hi all, I am sorry that this method to fix this bug was not perfect. I will find another way to do this. Plz ignore this patch. Regards, Zhu On Fri, 2015-01-16 at 13:45 +0800, Zhu Guihua wrote: > If hot add 100MiB memory like this: > (monitor) object_add memory-backend-ram,id=ram0,size=100M > (m

[Qemu-devel] [PATCH] pc-dimm: fix checking for backend memory size

2015-01-15 Thread Zhu Guihua
If hot add 100MiB memory like this: (monitor) object_add memory-backend-ram,id=ram0,size=100M (monitor) device_add pc-dimm,id=d0,memdev=ram0 The hotplug operation will faile, and the guest will print error message: Section-unaligned hotplug range: start 0x1, size 0x640 acpi PNP0C80:00: