Re: [Qemu-devel] [PATCH v6 6/7] exec: report error when memory < hpagesize

2014-08-08 Thread Hu Tao
On Thu, Aug 07, 2014 at 09:45:04PM +1000, Peter Crosthwaite wrote: > On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > > Report error when memory < hpagesize in file_ram_alloc() so callers can > > "an error" > > > handle the error. > > > > This patch fix a problem that if user adds a memory-backen

Re: [Qemu-devel] [PATCH v6 6/7] exec: report error when memory < hpagesize

2014-08-07 Thread Peter Crosthwaite
On Thu, Aug 7, 2014 at 7:10 PM, Hu Tao wrote: > Report error when memory < hpagesize in file_ram_alloc() so callers can "an error" > handle the error. > > This patch fix a problem that if user adds a memory-backend-file object Long sentence. I would drop the "This patch fixes a problem that" >

[Qemu-devel] [PATCH v6 6/7] exec: report error when memory < hpagesize

2014-08-07 Thread Hu Tao
Report error when memory < hpagesize in file_ram_alloc() so callers can handle the error. This patch fix a problem that if user adds a memory-backend-file object using object_add command, specifying a size that is less than huge page size, qemu will core dump with message: Bad ram offset ff