From: Laurent Vivier <laurent@vivier.eu>
To: Serge Belyshev <belyshev@depni.sinp.msu.ru>
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME
Date: Mon, 31 Jan 2022 10:39:19 +0100 [thread overview]
Message-ID: <d559d8ee-2433-bf87-1530-01ceb9c20fd1@vivier.eu> (raw)
In-Reply-To: <87a6fel3w8.fsf_-_@depni.sinp.msu.ru>
Le 29/01/2022 à 20:48, Serge Belyshev a écrit :
>
> Signed-off-by: Serge Belyshev <belyshev@depni.sinp.msu.ru>
> ---
> linux-user/generic/target_resource.h | 1 +
> linux-user/syscall.c | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/linux-user/generic/target_resource.h b/linux-user/generic/target_resource.h
> index f04c93b125..539d8c4677 100644
> --- a/linux-user/generic/target_resource.h
> +++ b/linux-user/generic/target_resource.h
> @@ -33,5 +33,6 @@ struct target_rlimit64 {
> #define TARGET_RLIMIT_MSGQUEUE 12
> #define TARGET_RLIMIT_NICE 13
> #define TARGET_RLIMIT_RTPRIO 14
> +#define TARGET_RLIMIT_RTTIME 15
>
> #endif
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 5950222a77..6d41a741ac 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -1083,6 +1083,8 @@ static inline int target_to_host_resource(int code)
> return RLIMIT_RSS;
> case TARGET_RLIMIT_RTPRIO:
> return RLIMIT_RTPRIO;
> + case TARGET_RLIMIT_RTTIME:
> + return RLIMIT_RTTIME;
> case TARGET_RLIMIT_SIGPENDING:
> return RLIMIT_SIGPENDING;
> case TARGET_RLIMIT_STACK:
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
next prev parent reply other threads:[~2022-01-31 9:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-15 11:32 [PATCH] linux-user/alpha: Fix target rlimits for alpha and rearrange for clarity Serge Belyshev
2022-01-27 13:49 ` Laurent Vivier
2022-01-29 19:41 ` Serge Belyshev
2022-01-29 19:46 ` [PATCH] linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h Serge Belyshev
2022-01-29 19:48 ` [PATCH] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME Serge Belyshev
2022-01-31 9:26 ` Laurent Vivier
2022-01-31 9:39 ` Laurent Vivier [this message]
2022-02-01 7:02 ` Laurent Vivier
2022-02-01 7:02 ` [PATCH] linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h Laurent Vivier
2022-01-27 14:09 ` [PATCH] linux-user/alpha: Fix target rlimits for alpha and rearrange for clarity Laurent Vivier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d559d8ee-2433-bf87-1530-01ceb9c20fd1@vivier.eu \
--to=laurent@vivier.eu \
--cc=belyshev@depni.sinp.msu.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).