diff options
author | 2023-09-15 20:01:52 +0300 | |
---|---|---|
committer | 2023-09-21 16:13:54 +0100 | |
commit | df7a75564e72b61213d5355c9ba8215244bb83bd (patch) | |
tree | 0f78c38cd181f97cb1ad5988f9c5197279ce2ffb /scripts/qapi/source.py | |
parent | elf2dmp: introduce merging of physical memory runs (diff) | |
download | qemu-df7a75564e72b61213d5355c9ba8215244bb83bd.tar.xz qemu-df7a75564e72b61213d5355c9ba8215244bb83bd.zip |
elf2dmp: use Linux mmap with MAP_NORESERVE when possible
Glib's g_mapped_file_new maps file with PROT_READ|PROT_WRITE and
MAP_PRIVATE. This leads to premature physical memory allocation of dump
file size on Linux hosts and may fail. On Linux, mapping the file with
MAP_NORESERVE limits the allocation by available memory.
Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-id: 20230915170153.10959-5-viktor@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions