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

linux-user: AArch64 has sync_file_range, not sync_file_range2

The AArch64 Linux ABI syscall 84 is sync_file_range, not
sync_file_range2 (in the kernel it uses the asm-generic
headers and does not define __ARCH_WANT_SYNC_FILE_RANGE2).
Update our TARGET_NR_* definitions accordingly.

This fixes the sync_file_range syscall which otherwise
gets its arguments in the wrong order.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

authored by

Peter Maydell and committed by
Riku Voipio
c4e1cbd4 a57f1f8f

+1 -2
+1 -2
linux-user/aarch64/syscall_nr.h
··· 86 86 #define TARGET_NR_sync 81 87 87 #define TARGET_NR_fsync 82 88 88 #define TARGET_NR_fdatasync 83 89 - #define TARGET_NR_sync_file_range2 84 90 - /* #define TARGET_NR_sync_file_range 84 */ 89 + #define TARGET_NR_sync_file_range 84 91 90 #define TARGET_NR_timerfd_create 85 92 91 #define TARGET_NR_timerfd_settime 86 93 92 #define TARGET_NR_timerfd_gettime 87