powerpc/vdso: Add support for time namespaces
This patch adds the necessary glue to provide time namespaces. Things are mainly copied from ARM64. __arch_get_timens_vdso_data() calculates timens vdso data position based on the vdso data position, knowing it is the next page in vvar. This avoids having to redo the mflr/bcl/mflr/mtlr dance to locate the page relative to running code position. Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> # vDSO parts Acked-by:
Andrei Vagin <avagin@gmail.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1a15495f80ec19a87b16cf874dbf7c3fa5ec40fe.1617209142.git.christophe.leroy@csgroup.eu
Showing
- arch/powerpc/Kconfig 2 additions, 1 deletionarch/powerpc/Kconfig
- arch/powerpc/include/asm/vdso/gettimeofday.h 10 additions, 0 deletionsarch/powerpc/include/asm/vdso/gettimeofday.h
- arch/powerpc/include/asm/vdso_datapage.h 0 additions, 2 deletionsarch/powerpc/include/asm/vdso_datapage.h
- arch/powerpc/kernel/vdso.c 100 additions, 16 deletionsarch/powerpc/kernel/vdso.c
- arch/powerpc/kernel/vdso32/vdso32.lds.S 1 addition, 1 deletionarch/powerpc/kernel/vdso32/vdso32.lds.S
- arch/powerpc/kernel/vdso64/vdso64.lds.S 1 addition, 1 deletionarch/powerpc/kernel/vdso64/vdso64.lds.S
Loading
Please register or sign in to comment