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 /trace-events | |
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 'trace-events')
-rw-r--r-- | trace-events | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trace-events b/trace-events index 855b0ab240..2c3e3d7690 100644 --- a/trace-events +++ b/trace-events @@ -55,9 +55,10 @@ dma_complete(void *dbs, int ret, void *cb) "dbs=%p ret=%d cb=%p" dma_blk_cb(void *dbs, int ret) "dbs=%p ret=%d" dma_map_wait(void *dbs) "dbs=%p" -# # exec.c +# exec.c find_ram_offset(uint64_t size, uint64_t offset) "size: 0x%" PRIx64 " @ 0x%" PRIx64 find_ram_offset_loop(uint64_t size, uint64_t candidate, uint64_t offset, uint64_t next, uint64_t mingap) "trying size: 0x%" PRIx64 " @ 0x%" PRIx64 ", offset: 0x%" PRIx64" next: 0x%" PRIx64 " mingap: 0x%" PRIx64 +ram_block_discard_range(const char *rbname, void *hva, size_t length, bool need_madvise, bool need_fallocate, int ret) "%s@%p + 0x%zx: madvise: %d fallocate: %d ret: %d" # memory.c memory_region_ops_read(int cpu_index, void *mr, uint64_t addr, uint64_t value, unsigned size) "cpu %d mr %p addr 0x%"PRIx64" value 0x%"PRIx64" size %u" |