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 data
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 with
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 the