qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME


From: Laurent Vivier
Subject: Re: [PATCH] linux-user/syscall: Translate TARGET_RLIMIT_RTTIME
Date: Mon, 31 Jan 2022 10:39:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]