]> Git Repo - qemu.git/commit
postcopy: enhance ram_block_discard_range for hugepages
authorDr. David Alan Gilbert <[email protected]>
Fri, 24 Feb 2017 18:28:33 +0000 (18:28 +0000)
committerDr. David Alan Gilbert <[email protected]>
Tue, 28 Feb 2017 11:30:23 +0000 (11:30 +0000)
commite2fa71f527510387f9d474414eba7f9812c58347
tree68a5e82cbaf94edf5bf40c2454fa4697322db2e4
parentd3a5038c461b9436e5bc82a802b7a843b79f417f
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 <[email protected]>
Reviewed-by: Juan Quintela <[email protected]>
Reviewed-by: Laurent Vivier <[email protected]>
Message-Id: <20170224182844[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
exec.c
This page took 0.021736 seconds and 4 git commands to generate.