diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-15 13:01:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-15 13:01:52 +0200 |
commit | 6d3fab99f942f3d286461702bfedf0d16d9911c7 (patch) | |
tree | cafd23ba00b339bda9c367369d24fba1c6e753c3 | |
parent | 442ba85228955e7a839a80aec5229a7e37154de6 (diff) | |
download | stable-queue-6d3fab99f942f3d286461702bfedf0d16d9911c7.tar.gz |
delete queue-3.0/xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch
-rw-r--r-- | queue-3.0/series | 1 | ||||
-rw-r--r-- | queue-3.0/xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch | 75 |
2 files changed, 0 insertions, 76 deletions
diff --git a/queue-3.0/series b/queue-3.0/series index f43c89a55e..93d2953e34 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -66,7 +66,6 @@ mmc-rename-mmc_host_clk_-ungate-gate-to-mmc_host_clk_-hold-release.patch mmc-core-prevent-aggressive-clock-gating-racing-with-ios.patch mmc-core-use-non-reentrant-workqueue-for-clock-gating.patch mmc-sdhci-s3c-fix-mmc-card-i-o-problem.patch -xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch xen-x86_32-do-not-enable-iterrupts-when-returning-from.patch xen-smp-warn-user-why-they-keel-over-nosmp-or-noapic-and-what-to-use-instead.patch hwmon-max16065-fix-current-calculation.patch diff --git a/queue-3.0/xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch b/queue-3.0/xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch deleted file mode 100644 index 83cf0472ec..0000000000 --- a/queue-3.0/xen-use-maximum-reservation-to-limit-amount-of-usable-ram.patch +++ /dev/null @@ -1,75 +0,0 @@ -From d312ae878b6aed3912e1acaaf5d0b2a9d08a4f11 Mon Sep 17 00:00:00 2001 -From: David Vrabel <david.vrabel@citrix.com> -Date: Fri, 19 Aug 2011 15:57:16 +0100 -Subject: xen: use maximum reservation to limit amount of usable RAM - -From: David Vrabel <david.vrabel@citrix.com> - -commit d312ae878b6aed3912e1acaaf5d0b2a9d08a4f11 upstream. - -Use the domain's maximum reservation to limit the amount of extra RAM -for the memory balloon. This reduces the size of the pages tables and -the amount of reserved low memory (which defaults to about 1/32 of the -total RAM). - -On a system with 8 GiB of RAM with the domain limited to 1 GiB the -kernel reports: - -Before: - -Memory: 627792k/4472000k available - -After: - -Memory: 549740k/11132224k available - -A increase of about 76 MiB (~1.5% of the unused 7 GiB). The reserved -low memory is also reduced from 253 MiB to 32 MiB. The total -additional usable RAM is 329 MiB. - -For dom0, this requires at patch to Xen ('x86: use 'dom0_mem' to limit -the number of pages for dom0') (c/s 23790) - -Signed-off-by: David Vrabel <david.vrabel@citrix.com> -Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> -Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> - ---- - arch/x86/xen/setup.c | 19 +++++++++++++++++++ - 1 file changed, 19 insertions(+) - ---- a/arch/x86/xen/setup.c -+++ b/arch/x86/xen/setup.c -@@ -185,6 +185,19 @@ static unsigned long __init xen_set_iden - PFN_UP(start_pci), PFN_DOWN(last)); - return identity; - } -+ -+static unsigned long __init xen_get_max_pages(void) -+{ -+ unsigned long max_pages = MAX_DOMAIN_PAGES; -+ domid_t domid = DOMID_SELF; -+ int ret; -+ -+ ret = HYPERVISOR_memory_op(XENMEM_maximum_reservation, &domid); -+ if (ret > 0) -+ max_pages = ret; -+ return min(max_pages, MAX_DOMAIN_PAGES); -+} -+ - /** - * machine_specific_memory_setup - Hook for machine specific memory setup. - **/ -@@ -293,6 +306,12 @@ char * __init xen_memory_setup(void) - - sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map); - -+ extra_limit = xen_get_max_pages(); -+ if (extra_limit >= max_pfn) -+ extra_pages = extra_limit - max_pfn; -+ else -+ extra_pages = 0; -+ - extra_pages += xen_return_unused_memory(xen_start_info->nr_pages, &e820); - - /* |