qemu: bump RLIMIT_AS if restricted
PATCH 1/1 qemu: bump RLIMIT_AS if restricted
Mostly the same as is already being done for several other RLIMIT_* values.
Signed-off-by Jan Beulich <[email protected]>
vl.c +6 -0
@@ -4846,6 +4846,12 @@ int main(int argc, char **argv, char **e rl.rlim_cur = rl.rlim_max;if (setrlimit (RLIMIT_DATA , &rl) !=0 )perror ("setrlimit(RLIMIT_DATA)" ); +if (getrlimit (RLIMIT_AS , &rl) ==0 ) { + rl.rlim_cur = rl.rlim_max; +if (setrlimit (RLIMIT_AS , &rl) !=0 ) +perror ("setrlimit(RLIMIT_AS)" ); + }else +perror ("getrlimit(RLIMIT_AS)" ); rl.rlim_cur =RLIM_INFINITY ; rl.rlim_max =RLIM_INFINITY ;if (setrlimit (RLIMIT_RSS , &rl) !=0 )
Mostly the same as is already being done for several other RLIMIT_* values.
Signed-off-by Jan Beulich <[email protected]>
vl.c +6 -0
@@ -4846,6 +4846,12 @@ int main(int argc, char **argv, char **e rl.rlim_cur = rl.rlim_max;if (setrlimit (RLIMIT_DATA , &rl) !=0 )perror ("setrlimit(RLIMIT_DATA)" ); +if (getrlimit (RLIMIT_AS , &rl) ==0 ) { + rl.rlim_cur = rl.rlim_max; +if (setrlimit (RLIMIT_AS , &rl) !=0 ) +perror ("setrlimit(RLIMIT_AS)" ); + }else +perror ("getrlimit(RLIMIT_AS)" ); rl.rlim_cur =RLIM_INFINITY ; rl.rlim_max =RLIM_INFINITY ;if (setrlimit (RLIMIT_RSS , &rl) !=0 )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 4 lines · Jan Beulich
Mostly the same as is already being done for several other RLIMIT_* values.
Signed-off-by Jan Beulich <[email protected]>
Ian Jackson
AppliedJan Beulich writes ("[Xen-devel] [PATCH] qemu: bump RLIMIT_AS if restricted"):
Quoted 4 lines
Mostly the same as is already being done for several other RLIMIT_* values.
Signed-off-by Jan Beulich <[email protected]>
Applied to qemu-xen-unstable.git. You may want to consider whether this change, or something like it, ought to go upstream to qemu-devel.
Thanks,
Ian.