[PATCH 1/2] linux user: fixed proc myself execfd behaviour, added tests for proc myself fd

2020-08-20 Thread Andrew Aladjev
Signed-off-by: Andrew Aladjev --- linux-user/elfload.c | 3 +- linux-user/main.c| 11 - linux-user/syscall.c | 7 ++- tests/tcg/multiarch/linux-test.c | 85 4 files changed, 101 insertions(+), 5 deletions(-) diff

[PATCH 2/2] linux user: refactored is proc functions for syscalls

2020-08-20 Thread Andrew Aladjev
Signed-off-by: Andrew Aladjev --- linux-user/syscall.c | 81 ++-- 1 file changed, 56 insertions(+), 25 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 3d8c57522d..7b4d7cc197 100644 --- a/linux-user/syscall.c +++ b/linux-user

[PATCH 3/3] linux user: refactored is proc myself, added support for fd/

2020-08-17 Thread Andrew Aladjev
Signed-off-by: Andrew Aladjev --- linux-user/syscall.c | 12 ++-- linux-user/syscall_proc.c | 113 +++--- linux-user/syscall_proc.h | 5 +- 3 files changed, 101 insertions(+), 29 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index

[PATCH 2/3] linux user: moving is proc functions to separate file

2020-08-17 Thread Andrew Aladjev
Signed-off-by: Andrew Aladjev --- linux-user/Makefile.objs | 5 +++-- linux-user/syscall.c | 33 + linux-user/syscall_proc.c | 32 linux-user/syscall_proc.h | 7 +++ 4 files changed, 43 insertions(+), 34 deletions

[PATCH 1/3] linux user: make execfd global (like exec path) and keep it open

2020-08-17 Thread Andrew Aladjev
global. Signed-off-by: Andrew Aladjev --- linux-user/elfload.c | 3 ++- linux-user/exit.c| 7 +-- linux-user/main.c| 2 +- linux-user/qemu.h| 1 + linux-user/syscall.c | 18 ++ 5 files changed, 23 insertions(+), 8 deletions(-) diff --git a/linux-user/elfload.c b