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

linux-user: correct timerfd_create syscall numbers

x86, m68k, ppc, sh4 and sparc failed to enable timerfd, because they
didn't have timerfd_create system call defined. Instead QEMU
defined timerfd syscall. Checking with kernel sources, it appears
kernel developers reused timerfd syscall number with timerfd_create,
presumably since no userspace called the old syscall number.

Reported-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>

+6 -6
+1 -1
linux-user/i386/syscall_nr.h
··· 324 324 #define TARGET_NR_epoll_pwait 319 325 325 #define TARGET_NR_utimensat 320 326 326 #define TARGET_NR_signalfd 321 327 - #define TARGET_NR_timerfd 322 327 + #define TARGET_NR_timerfd_create 322 328 328 #define TARGET_NR_eventfd 323 329 329 #define TARGET_NR_fallocate 324 330 330 #define TARGET_NR_timerfd_settime 325
+1 -1
linux-user/m68k/syscall_nr.h
··· 317 317 #define TARGET_NR_epoll_pwait 315 318 318 #define TARGET_NR_utimensat 316 319 319 #define TARGET_NR_signalfd 317 320 - #define TARGET_NR_timerfd 318 320 + #define TARGET_NR_timerfd_create 318 321 321 #define TARGET_NR_eventfd 319 322 322 #define TARGET_NR_fallocate 320 323 323 #define TARGET_NR_timerfd_settime 321
+1 -1
linux-user/ppc/syscall_nr.h
··· 319 319 #define TARGET_NR_epoll_pwait 303 320 320 #define TARGET_NR_utimensat 304 321 321 #define TARGET_NR_signalfd 305 322 - #define TARGET_NR_timerfd 306 322 + #define TARGET_NR_timerfd_create 306 323 323 #define TARGET_NR_eventfd 307 324 324 #define TARGET_NR_sync_file_range2 308 325 325 #define TARGET_NR_fallocate 309
+1 -1
linux-user/sh4/syscall_nr.h
··· 323 323 #define TARGET_NR_epoll_pwait 319 324 324 #define TARGET_NR_utimensat 320 325 325 #define TARGET_NR_signalfd 321 326 - #define TARGET_NR_timerfd 322 326 + #define TARGET_NR_timerfd_create 322 327 327 #define TARGET_NR_eventfd 323 328 328 #define TARGET_NR_fallocate 324 329 329 #define TARGET_NR_timerfd_settime 325
+1 -1
linux-user/sparc/syscall_nr.h
··· 278 278 #define TARGET_NR_epoll_pwait 309 279 279 #define TARGET_NR_utimensat 310 280 280 #define TARGET_NR_signalfd 311 281 - #define TARGET_NR_timerfd 312 281 + #define TARGET_NR_timerfd_create 312 282 282 #define TARGET_NR_eventfd 313 283 283 #define TARGET_NR_fallocate 314 284 284 #define TARGET_NR_timerfd_settime 315
+1 -1
linux-user/x86_64/syscall_nr.h
··· 281 281 #define TARGET_NR_utimensat 280 282 282 #define TARGET_NR_epoll_pwait 281 283 283 #define TARGET_NR_signalfd 282 284 - #define TARGET_NR_timerfd 283 284 + #define TARGET_NR_timerfd_create 283 285 285 #define TARGET_NR_eventfd 284 286 286 #define TARGET_NR_fallocate 285 287 287 #define TARGET_NR_timerfd_settime 286