]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: add sched_getattr support
authorTonis Tiigi <tonistiigi@gmail.com>
Wed, 5 Jan 2022 04:18:18 +0000 (20:18 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commit45ad761c27dfb571d9a1ab3af80e8034d36d1b59
tree264062b05e6ff1fd80d290e1f497629fc4a98c68
parent139e5de7c883522b7307e26d4b7dce489b53e307
linux-user: add sched_getattr support

These syscalls are not exposed by glibc. The struct type need to be
redefined as it can't be included directly before
https://lkml.org/lkml/2020/5/28/810 .

sched_attr type can grow in future kernel versions. When client sends
values that QEMU does not understand it will return E2BIG with same
semantics as old kernel would so client can retry with smaller inputs.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Message-Id: <20220105041819.24160-2-tonistiigi@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c
linux-user/syscall_defs.h