Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222916
b: refs/heads/master
c: 2a4c92f
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Dec 2, 2010
1 parent 01001dd commit 3386253
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc15fde77fc5d9ec2eec6066a5ab554ea1266a0a
refs/heads/master: 2a4c92fa24e1853d0e21f9e6e45859b832240f94
12 changes: 10 additions & 2 deletions trunk/drivers/xen/balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,16 @@ static int __init balloon_init(void)

register_balloon(&balloon_sysdev);

/* Initialise the balloon with excess memory space. */
extra_pfn_end = min(e820_end_of_ram_pfn(),
/*
* Initialise the balloon with excess memory space. We need
* to make sure we don't add memory which doesn't exist or
* logically exist. The E820 map can be trimmed to be smaller
* than the amount of physical memory due to the mem= command
* line parameter. And if this is a 32-bit non-HIGHMEM kernel
* on a system with memory which requires highmem to access,
* don't try to use it.
*/
extra_pfn_end = min(min(max_pfn, e820_end_of_ram_pfn()),
(unsigned long)PFN_DOWN(xen_extra_mem_start + xen_extra_mem_size));
for (pfn = PFN_UP(xen_extra_mem_start);
pfn < extra_pfn_end;
Expand Down

0 comments on commit 3386253

Please sign in to comment.