diff options
| author | Dr. David Alan Gilbert | 2018-03-12 18:20:56 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-03-20 04:03:26 +0100 |
| commit | db144f7000327a98a7ed0b32f1fc8615ad4ae740 (patch) | |
| tree | b9b6f1440c3b925f32652db6cc0b733b106bd894 /include/exec | |
| parent | Makefile: add target to print generated files (diff) | |
| download | qemu-db144f7000327a98a7ed0b32f1fc8615ad4ae740.tar.gz qemu-db144f7000327a98a7ed0b32f1fc8615ad4ae740.tar.xz qemu-db144f7000327a98a7ed0b32f1fc8615ad4ae740.zip | |
migrate: Update ram_block_discard_range for shared
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 private.
Care should be taken when trying other backing files.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
