riscv/vdso: Add support for time namespaces
Implement generic vdso time namespace support which also enables time namespaces for riscv. This is quite similar to what arm64 does. selftest/timens test result: 1..10 ok 1 Passed for CLOCK_BOOTTIME (syscall) ok 2 Passed for CLOCK_BOOTTIME (vdso) ok 3 # SKIP CLOCK_BOOTTIME_ALARM isn't supported ok 4 # SKIP CLOCK_BOOTTIME_ALARM isn't supported ok 5 Passed for CLOCK_MONOTONIC (syscall) ok 6 Passed for CLOCK_MONOTONIC (vdso) ok 7 Passed for CLOCK_MONOTONIC_COARSE (syscall) ok 8 Passed for CLOCK_MONOTONIC_COARSE (vdso) ok 9 Passed for CLOCK_MONOTONIC_RAW (syscall) ok 10 Passed for CLOCK_MONOTONIC_RAW (vdso) # Totals: pass:8 fail:0 xfail:0 xpass:0 skip:2 error:0 Signed-off-by:Tong Tiangen <tongtiangen@huawei.com> Signed-off-by:
Palmer Dabbelt <palmerdabbelt@google.com>
Showing
- arch/riscv/Kconfig 1 addition, 0 deletionsarch/riscv/Kconfig
- arch/riscv/include/asm/page.h 2 additions, 0 deletionsarch/riscv/include/asm/page.h
- arch/riscv/include/asm/vdso.h 1 addition, 1 deletionarch/riscv/include/asm/vdso.h
- arch/riscv/include/asm/vdso/gettimeofday.h 7 additions, 0 deletionsarch/riscv/include/asm/vdso/gettimeofday.h
- arch/riscv/kernel/vdso.c 197 additions, 53 deletionsarch/riscv/kernel/vdso.c
- arch/riscv/kernel/vdso/vdso.lds.S 3 additions, 0 deletionsarch/riscv/kernel/vdso/vdso.lds.S
Loading
Please register or sign in to comment