diff options
| author | Dr. David Alan Gilbert | 2017-02-24 19:28:33 +0100 |
|---|---|---|
| committer | Dr. David Alan Gilbert | 2017-02-28 12:30:23 +0100 |
| commit | e2fa71f527510387f9d474414eba7f9812c58347 (patch) | |
| tree | 68a5e82cbaf94edf5bf40c2454fa4697322db2e4 /include/exec | |
| parent | exec: ram_block_discard_range (diff) | |
| download | qemu-e2fa71f527510387f9d474414eba7f9812c58347.tar.gz qemu-e2fa71f527510387f9d474414eba7f9812c58347.tar.xz qemu-e2fa71f527510387f9d474414eba7f9812c58347.zip | |
postcopy: enhance ram_block_discard_range for hugepages
Unfortunately madvise DONTNEED doesn't work on hugepagetlb
so use fallocate(FALLOC_FL_PUNCH_HOLE)
qemu_fd_getpagesize only sets the page based off a file
if the file is from hugetlbfs.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20170224182844.32452-6-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
