Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264422
b: refs/heads/master
c: b1cbf9b
h: refs/heads/master
v: v3
  • Loading branch information
David Vrabel authored and Konrad Rzeszutek Wilk committed Sep 29, 2011
1 parent 6538aa1 commit 1ab1f2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: aa24411b6717fd1e6ecef281bec497f6f30bbd66
refs/heads/master: b1cbf9b1d6af22ba262d99abcfd71d5d90dbd57a
18 changes: 9 additions & 9 deletions trunk/drivers/xen/balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,16 +586,16 @@ static int __init balloon_init(void)
#endif

/*
* 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.
* Initialize the balloon with pages from the extra memory
* region (see arch/x86/xen/setup.c).
*
* If the amount of usable memory has been limited (e.g., with
* the 'mem' command line parameter), don't add pages beyond
* this limit.
*/
extra_pfn_end = min(min(max_pfn, e820_end_of_ram_pfn()),
(unsigned long)PFN_DOWN(xen_extra_mem_start + xen_extra_mem_size));
extra_pfn_end = min(max_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;
pfn++) {
Expand Down

0 comments on commit 1ab1f2d

Please sign in to comment.