Re: [Qemu-devel] Purpose of memory-backend-file.discard-data

2018-04-17 Thread Michal Privoznik
On 04/16/2018 07:59 PM, Eduardo Habkost wrote: > (CCing Zack Cornelius) > > On Fri, Apr 13, 2018 at 08:21:26AM +0200, Michal Privoznik wrote: >> Eduardo et al, >> >> I'm looking at 11ae6ed8affdd131e and I wanted to implement libvirt >> support for that. But more I look at it less I understand it.

Re: [Qemu-devel] Purpose of memory-backend-file.discard-data

2018-04-16 Thread Eduardo Habkost
(CCing Zack Cornelius) On Fri, Apr 13, 2018 at 08:21:26AM +0200, Michal Privoznik wrote: > Eduardo et al, > > I'm looking at 11ae6ed8affdd131e and I wanted to implement libvirt > support for that. But more I look at it less I understand it. My > understanding it is an optimization (although not v

[Qemu-devel] Purpose of memory-backend-file.discard-data

2018-04-12 Thread Michal Privoznik
Eduardo et al, I'm looking at 11ae6ed8affdd131e and I wanted to implement libvirt support for that. But more I look at it less I understand it. My understanding it is an optimization (although not very effective one since madvise() is/should be immediately followed by munmap()). So any application