[PATCH v4 2/2] linux-user: call set/getscheduler set/getparam directly

2022-01-04 Thread Tonis Tiigi
There seems to be difference in syscall and libc definition of these methods and therefore musl does not implement them (1e21e78bf7). Call syscall directly to ensure the behavior of the libc of user application, not the libc that was used to build QEMU. Signed-off-by: Tonis Tiigi --- linux-user

[PATCH v4 1/2] linux-user: add sched_getattr support

2022-01-04 Thread Tonis Tiigi
same semantics as old kernel would so client can retry with smaller inputs. Signed-off-by: Tonis Tiigi --- linux-user/syscall.c | 123 ++ linux-user/syscall_defs.h | 14 + 2 files changed, 137 insertions(+) diff --git a/linux-user/syscall.c b/linux

[PATCH v4 0/2] linux-user: fixes for sched_ syscalls

2022-01-04 Thread Tonis Tiigi
s already aligned by default it can't break anything. - Fixed formatting. - Defined own `target_sched_param` struct as requested. Tonis Tiigi (2): linux-user: add sched_getattr support linux-user: call set/getscheduler set/getparam directly linux-user/syscall.c | 157

[PATCH v3 0/2] linux-user: fixes for sched_ syscalls

2021-12-23 Thread Tonis Tiigi
te understand why this is needed as I don't see same in kernel headers, but as this type uses only constant width fields and is already aligned by default it can't break anything. - Fixed formatting. - Defined own `target_sched_param` struct as requested. Tonis Tiigi (2): linux-user

[PATCH v3 2/2] linux-user: call set/getscheduler set/getparam directly

2021-12-23 Thread Tonis Tiigi
There seems to be difference in syscall and libc definition of these methods and therefore musl does not implement them (1e21e78bf7). Call syscall directly to ensure the behavior of the libc of user application, not the libc that was used to build QEMU. Signed-off-by: Tonis Tiigi --- linux-user

[PATCH v3 1/2] linux-user: add sched_getattr support

2021-12-23 Thread Tonis Tiigi
Signed-off-by: Tonis Tiigi --- linux-user/syscall.c | 94 +++ linux-user/syscall_defs.h | 14 ++ 2 files changed, 108 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f1cfcc8104..2f5a0fac5a 100644 --- a/linux-user

[PATCH v2 1/2] linux-user: add sched_getattr support

2021-12-20 Thread Tonis Tiigi
Signed-off-by: Tonis Tiigi --- linux-user/syscall.c | 72 +++ linux-user/syscall_defs.h | 14 2 files changed, 86 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f1cfcc8104..a447ce1f92 100644 --- a/linux-user

[PATCH v2 2/2] linux-user: call set/getscheduler set/getparam directly

2021-12-20 Thread Tonis Tiigi
There seems to be difference in syscall and libc definition of these methods and therefore musl does not implement them (1e21e78bf7). Call syscall directly to ensure the behavior of the libc of user application, not the libc that was used to build QEMU. Signed-off-by: Tonis Tiigi --- linux-user

[PATCH v2 0/2] linux-user: fixes for sched_ syscalls

2021-12-20 Thread Tonis Tiigi
s I don't see same in kernel headers, but as this type uses only constant width fields and is already aligned by default it can't break anything. - Fixed formatting. - Defined own `target_sched_param` struct as requested. Tonis Tiigi (2): linux-user: add sched_getattr support linux

[PATCH 2/2] linux-user: call set/getscheduler set/getparam directly

2021-12-11 Thread Tonis Tiigi
There seems to be difference in syscall and libc definition of these methods and therefore musl does not implement them (1e21e78bf7). Call syscall directly to ensure the behavior of the libc of user application, not the libc that was used to build QEMU. Signed-off-by: Tonis Tiigi --- linux-user

[PATCH 1/2] linux-user: add sched_getattr support

2021-12-11 Thread Tonis Tiigi
Signed-off-by: Tonis Tiigi --- linux-user/syscall.c | 55 +++ linux-user/syscall_defs.h | 15 +++ 2 files changed, 70 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f1cfcc8104..670b61b2ef 100644 --- a/linux-user

[PATCH 0/2] linux-user: fixes for sched_ syscalls

2021-12-11 Thread Tonis Tiigi
t/?id=1e21e78bf7a5c24c217446d8760be7b7188711c2 . I've changed it to call syscall directly what should always be the expected behavior for the user. Via https://github.com/tonistiigi/binfmt/pull/70 with additional tests. Tonis Tiigi (2): linux-user: add sched_getattr support linux-user