Re: [Qemu-devel] [PATCH v2 0/3] hostmem-file: Add "discard-data" option

2017-09-14 Thread Eduardo Habkost
Series queued on machine-next. On Thu, Aug 24, 2017 at 04:23:12PM -0300, Eduardo Habkost wrote: > This series adds a new "discard-data" option to > memory-backend-file. The new option will be useful if somebody > is sharing RAM contents on a pre-existing file using share=on, > but don't need

Re: [Qemu-devel] [PATCH v2 0/3] hostmem-file: Add "discard-data" option

2017-09-04 Thread Zack Cornelius
I've tested this patch set, and it has the expected results. On a clean exit, with discard-data=on, madvise(MADV_REMOVE) is called, clearing any dirty data from RAM without needing to flush, and removing data from the underlying memory file. These results match our expected operation. Run

[Qemu-devel] [PATCH v2 0/3] hostmem-file: Add "discard-data" option

2017-08-24 Thread Eduardo Habkost
This series adds a new "discard-data" option to memory-backend-file. The new option will be useful if somebody is sharing RAM contents on a pre-existing file using share=on, but don't need data to be flushed to disk when QEMU exits. Internally, it will trigger a madvise(MADV_REMOVE) call when