]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/mmap.c
bsd-user/mmap.c: Implement MAP_EXCL, required by jemalloc in head
authorKyle Evans <kevans@FreeBSD.org>
Thu, 8 Nov 2018 20:39:47 +0000 (14:39 -0600)
committerWarner Losh <imp@bsdimp.com>
Mon, 18 Oct 2021 18:51:38 +0000 (12:51 -0600)
commit0fc76b685989d30a32316b17a9c43ba017e114a1
tree189b97c7b1f94dbae0b6968d8178989bb13e8a69
parenta6b2d060667422d54e077c0a8e4c55bd083ef489
bsd-user/mmap.c: Implement MAP_EXCL, required by jemalloc in head

jemalloc requires a working MAP_EXCL. Ensure that no page is double
mapped when specified. In addition, use guest_range_valid_untagged to
test for valid ranges of pages rather than an incomplete inlined version
of the test that might be wrong.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/mmap.c