]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Add patches for system call handling
authorDragos Iulian Argint <dragosargint21@gmail.com>
Sat, 7 May 2022 08:54:09 +0000 (11:54 +0300)
committerUnikraft <monkey@unikraft.io>
Wed, 23 Nov 2022 10:17:05 +0000 (10:17 +0000)
commitf24bbab96811e92410b706cb2d6f82428d7dac6d
tree747bba2bccbc3afd910d8f07123de972de40b5b0
parente3a54d0df31ed5786f9ee64094f2038a411f695f
Add patches for system call handling

Musl wrappers use a binary system call, e.g. for x86_64 the `syscall`
instruction is used which is a trap. In a single-address-space OS as an Unikraft
unikernel this is just overhead. Hence, we changed the way musl deals with
syscall handling by using some syscall shim layer macros.
Those will replace binary system calls with function calls.

Signed-off-by: Dragos Iulian Argint <dragosargint21@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #5
patches/0005-Use-syscall-shim-layer.patch [deleted file]
patches/0005-lib-musl-Use-macros-defined-in-syscall-shim-layer.patch [new file with mode: 0644]
patches/0005-lib-musl-Use-uk_syscall_r-for-__syscall_cp_c.patch [new file with mode: 0644]
patches/0005-lib-musl-Use-uk_syscall_r-for-do_setxid.patch [new file with mode: 0644]