qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: Update TASK_UNMAPPED_BASE for aarch64

This change updates TASK_UNMAPPED_BASE (the base address for guest programs) for aarch64. It is needed to allow qemu to work with Thread Sanitizer (TSan), which has specific boundary definitions for memory mappings on different platforms:
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/tsan/rtl/tsan_platform.h

Signed-off-by: Lirong Yuan <yuanzi@google.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200313002813.3857-1-yuanzi@google.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Lirong Yuan and committed by
Laurent Vivier
aab613fb 2039b1b0

+4
+4
linux-user/mmap.c
··· 184 184 } 185 185 186 186 #if HOST_LONG_BITS == 64 && TARGET_ABI_BITS == 64 187 + #ifdef TARGET_AARCH64 188 + # define TASK_UNMAPPED_BASE 0x5500000000 189 + #else 187 190 # define TASK_UNMAPPED_BASE (1ul << 38) 191 + #endif 188 192 #else 189 193 # define TASK_UNMAPPED_BASE 0x40000000 190 194 #endif