Skip to content

linux-user: generate syscall_nr.sh for RISC-V

Alistair Francis qemu-devel qemu-riscv 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 5 repliesIn review
  2. v84 patches 2 repliesApplied
  3. v74 patches 7 repliesApplied
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v64 patches2 repliesSuperseded
v53 patches3 repliesSuperseded
v43 patches2 repliesSuperseded
v32 patches0 repliesSuperseded
v22 patches9 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v9 from the cover letter

- Fix futex patch compile error

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4linux-user: Protect more syscallslinux-user/strace.c linux-user/syscall.c+68 -21 reply
2/4linux-user/syscall: Add support for clock_gettime64/clock_settime64linux-user/syscall.c+39 -01 reply
3/4linux-user: Support futex_time64linux-user/syscall.c+131 -133 replies
4/4linux-user/riscv: Update the syscall_nr's to the 5.5 kernellinux-user/riscv/syscall32_nr.h linux-user/riscv/syscall64_nr.h linux-user/riscv/syscall_nr.h+598 -2920 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchLaurent VivierPhilippe Mathieu-Daudé
1/4R-b R-b
2/4R-b R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/4] linux-user: generate syscall_nr.sh for RISC-V

This series updates the RISC-V syscall_nr.sh based on the 5.5 kernel.

There are two parts to this. One is just adding the new syscalls, the other part is updating the RV32 syscalls to match the fact that RV32 is a 64-bit time_t architectures (y2038) safe.
We need to make some changes to syscall.c to avoid warnings/errors during compliling with the new syscall.

I did some RV32 user space testing after applying these patches. I ran the glibc testsuite in userspace and I don't see any regressions.

v9:
- Fix futex patch compile error
v8:
- Add a g_assert_not_reached() in do_sys_futex
v7:
- Update futuex_time64 support to work correctly
v6:
- Split out futex patch and make it more robust
v5:
- Addres comments raised on v4
- Don't require 64-bit host for * _time64 functions

Alistair Francis (4):
linux-user: Protect more syscalls
linux-user/syscall: Add support for clock_gettime64/clock_settime64
linux-user: Support futex_time64
linux-user/riscv: Update the syscall_nr's to the 5.5 kernel

 linux-user/riscv/syscall32_nr.h | 295 +++++++++++++++++++++++++++++++
 linux-user/riscv/syscall64_nr.h | 301 ++++++++++++++++++++++++++++++++
 linux-user/riscv/syscall_nr.h   | 294 +------------------------------
 linux-user/strace.c             |   2 +
 linux-user/syscall.c            | 247 ++++++++++++++++++++++++--
 5 files changed, 834 insertions(+), 305 deletions(-)
 create mode 100644 linux-user/riscv/syscall32_nr.h
 create mode 100644 linux-user/riscv/syscall64_nr.h
Signature · 1 line
2.25.1