Re: [libvirt] [PATCH v3 5/5] qemu: Introduce memoryBacking/discard

2018-04-19 Thread Ján Tomko
On Thu, Apr 19, 2018 at 04:00:27PM +0200, Michal Privoznik wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1480668 QEMU has this new feature memory-backend-file.discard-data=yes which is a nifty optimization. Basically, when qemu is quitting or on memory hotplug it calls munmap() and close()

[libvirt] [PATCH v3 5/5] qemu: Introduce memoryBacking/discard

2018-04-19 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=1480668 QEMU has this new feature memory-backend-file.discard-data=yes which is a nifty optimization. Basically, when qemu is quitting or on memory hotplug it calls munmap() and close() on the file that is backing the memory. However, this does not mean