Re: [Qemu-devel] [RFC 02/29] migrate: Update ram_block_discard_range for shared

2017-08-24 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Jun 28, 2017 at 08:00:20PM +0100, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > The choice of call to discard a block is getting more complicated > > for other cases. We use fallocate PUNCH_HOLE in any file cases;

Re: [Qemu-devel] [RFC 02/29] migrate: Update ram_block_discard_range for shared

2017-07-10 Thread Peter Xu
On Wed, Jun 28, 2017 at 08:00:20PM +0100, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > The choice of call to discard a block is getting more complicated > for other cases. We use fallocate PUNCH_HOLE in any file cases; > it works for both hugepage and for tmpfs. > We

[Qemu-devel] [RFC 02/29] migrate: Update ram_block_discard_range for shared

2017-06-28 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The choice of call to discard a block is getting more complicated for other cases. We use fallocate PUNCH_HOLE in any file cases; it works for both hugepage and for tmpfs. We use the DONTNEED for non-hugepage cases either where they're anonymous or where they're p