Re: [Qemu-devel] [PATCH v2 0/3] Improve truncation behavior of memory-backend-file

2016-10-27 Thread Paolo Bonzini
On 27/10/2016 06:22, Haozhong Zhang wrote: > For a mmeory backend file, e.g. > -object memory-backend-file,mem-path=foo,size=SZ,... > the size of the backend file 'foo' is specified by the 'size' > option. If the specified size 'SZ' does not match the actual size of > file 'foo', QEMU will

[Qemu-devel] [PATCH v2 0/3] Improve truncation behavior of memory-backend-file

2016-10-26 Thread Haozhong Zhang
For a mmeory backend file, e.g. -object memory-backend-file,mem-path=foo,size=SZ,... the size of the backend file 'foo' is specified by the 'size' option. If the specified size 'SZ' does not match the actual size of file 'foo', QEMU will truncate the backend file 'foo'. In certain usage