Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-28 Thread Marcelo Tosatti
On Thu, Feb 27, 2014 at 07:30:26PM +0100, Paolo Bonzini wrote: > Il 04/02/2014 19:41, Marcelo Tosatti ha scritto: > > > >-mem-prealloc asks to preallocate memory residing on -mem-path path. > > > >Currently QEMU exits in case: > > > >- Memory file has been created but allocation via explicit write

Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-28 Thread Igor Mammedov
On Thu, 27 Feb 2014 19:30:26 +0100 Paolo Bonzini wrote: > Il 04/02/2014 19:41, Marcelo Tosatti ha scritto: > > > > -mem-prealloc asks to preallocate memory residing on -mem-path path. > > > > Currently QEMU exits in case: > > > > - Memory file has been created but allocation via explicit write >

Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-27 Thread Paolo Bonzini
Il 04/02/2014 19:41, Marcelo Tosatti ha scritto: -mem-prealloc asks to preallocate memory residing on -mem-path path. Currently QEMU exits in case: - Memory file has been created but allocation via explicit write fails. And it fallbacks to malloc in case: - Querying huge page size fails. - La

Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-07 Thread Paolo Bonzini
Il 04/02/2014 19:41, Marcelo Tosatti ha scritto: -mem-prealloc asks to preallocate memory residing on -mem-path path. Currently QEMU exits in case: - Memory file has been created but allocation via explicit write fails. And it fallbacks to malloc in case: - Querying huge page size fails. - La

Re: [Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-04 Thread Marcelo Tosatti
On Tue, Feb 04, 2014 at 01:41:53PM -0500, Marcelo Tosatti wrote: > > -mem-prealloc asks to preallocate memory residing on -mem-path path. > > Currently QEMU exits in case: > > - Memory file has been created but allocation via explicit write > fails. > > And it fallbacks to malloc in case: > -

[Qemu-devel] file_ram_alloc: unify mem-path, mem-prealloc error handling

2014-02-04 Thread Marcelo Tosatti
-mem-prealloc asks to preallocate memory residing on -mem-path path. Currently QEMU exits in case: - Memory file has been created but allocation via explicit write fails. And it fallbacks to malloc in case: - Querying huge page size fails. - Lack of sync MMU support. - Open fails. - mmap fail