9a05aa7fc4
22707-x2apic-preenabled-check.patch - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" 7434-qemu-rlimit-as.patch - Additional or upstream patches from Jan 22693-fam10-mmio-conf-base-protect.patch 22694-x86_64-no-weak.patch 22708-xenctx-misc.patch 21432-4.0-cpu-boot-failure.patch 22645-amd-flush-filter.patch qemu-fix-7433.patch - Maintain compatibility with the extid flag even though it is deprecated for both legacy and sxp config files. hv_extid_compatibility.patch - bnc#649209-improve suspend eventchn lock suspend_evtchn_lock.patch - Removed the hyper-v shim patches in favor of using the upstream version. - bnc#641419 - L3: Xen: qemu-dm reports "xc_map_foreign_batch: mmap failed: Cannot allocate memory" qemu-rlimit-as.patch - Upstream c/s 7433 to replace qemu_altgr_more.patch 7433-qemu-altgr.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=90
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
# HG changeset patch
|
|
# User Jan Beulich <jbeulich@novell.com>
|
|
# Date 1294771190 0
|
|
# Node ID d224cef9d82c5c1ba9a6d73ca2628f288ce6f434
|
|
# Parent a283996796c91dd29ecff444b78798e0ce902047
|
|
bump RLIMIT_AS if restricted
|
|
References: bnc#641419
|
|
|
|
Mostly the same as is already being done for several other RLIMIT_*
|
|
values.
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@novell.com>
|
|
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
|
|
|
|
committer: Ian Jackson <Ian.Jackson@eu.citrix.com>
|
|
git-commit-id: 2aa36d470e97f4baa219f78df82e2d3fe3d9f96d
|
|
|
|
|
|
--- a/tools/ioemu-qemu-xen/vl.c
|
|
+++ b/tools/ioemu-qemu-xen/vl.c
|
|
@@ -4845,6 +4845,13 @@ 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)
|