Displaying 3 results from an estimated 3 matches for "xen_extra_mem_start".
2011 Apr 07
3
Re: xen: do not create the extra e820 region at an addr lower than 4G
...way, the patch itself:
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 9c38bd1..f831568 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -229,7 +229,7 @@ char * __init xen_memory_setup(void)
memcpy(map_raw, map, sizeof(map));
e820.nr_map = 0;
- xen_extra_mem_start = mem_end;
+ xen_extra_mem_start = mem_end < (1UL<<32) ? (1UL<<32) : mem_end;
for (i = 0; i < memmap.nr_entries; i++) {
unsigned long long end;
"(1UL<<32)" will overflow on a 32 bit kernel.
Oh hang on... that''s the differenc...
2011 Mar 20
6
PATCH: Hugepage support for Domains booting with 4KB pages
...this list is inside the domain structure with name
"hugepage_list". When the domain is booting, at that time the memory
seen by the kernel is allocated memory less the amount required for hugepages. The function
reserve_hugepage_range is called as a initcall. Before this function the
xen_extra_mem_start points to this apparent end of the memory. In this
function we reserve the PFN range for the hugepages which are going to
be allocated by kernel by incrementing the xen_extra_mem_start. We
maintain these PFNs as pages in "xen_hugepfn_list" in the kernel.
Now
before the kernel reques...
2011 May 04
0
[PATCH 4/8] arch/x86/xen/setup: Cleanup code/data sections definitions
...aniel Kiper <dkiper@net-space.pl>
---
arch/x86/xen/setup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 90bac0a..d3663df 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -50,7 +50,7 @@ phys_addr_t xen_extra_mem_start, xen_extra_mem_size;
*/
#define EXTRA_MEM_RATIO (10)
-static __init void xen_add_extra_mem(unsigned long pages)
+static void __init xen_add_extra_mem(unsigned long pages)
{
unsigned long pfn;
@@ -336,7 +336,7 @@ static void __init fiddle_vdso(void)
#endif
}
-static __cpuinit int regi...