diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-05-29 18:36:43 +0200 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-05-30 16:16:37 +0200 |
commit | 58b7b53a36b0be8081fbfc91aeea24b83c20ca1b (patch) | |
tree | 27099a336249168a9d2de45449cefa21ddb62df3 /arch/x86/xen/enlighten.c | |
parent | xen/pci: Check for PCI bridge before using it. (diff) | |
download | linux-58b7b53a36b0be8081fbfc91aeea24b83c20ca1b.tar.xz linux-58b7b53a36b0be8081fbfc91aeea24b83c20ca1b.zip |
xen/balloon: Subtract from xen_released_pages the count that is populated.
We did not take into account that xen_released_pages would be
used outside the initial E820 parsing code. As such we would
did not subtract from xen_released_pages the count of pages
that we had populated back (instead we just did a simple
extra_pages = released - populated).
The balloon driver uses xen_released_pages to set the initial
current_pages count. If this is wrong (too low) then when a new
(higher) target is set, the balloon driver will request too many pages
from Xen."
This fixes errors such as:
(XEN) memory.c:133:d0 Could not allocate order=0 extent: id=0 memflags=0 (51 of 512)
during bootup and
free_memory : 0
where the free_memory should be 128.
Acked-by: David Vrabel <david.vrabel@citrix.com>
[v1: Per David's review made the git commit better]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
0 files changed, 0 insertions, 0 deletions