summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/string_32.S
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2019-12-16 11:30:58 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2019-12-16 23:15:16 +1100
commite352f576d345e5bf1fb62c8559851448a6c1d9cd (patch)
treecc0c93e9690b6861f48607c1905675ff72ce83a4 /arch/powerpc/lib/string_32.S
parent0601546f23fb70d84b807e73cfe8e789d054c98d (diff)
powerpc/pseries/cmm: fix managed page counts when migrating pages between zones
Commit 63341ab03706 (virtio-balloon: fix managed page counts when migrating pages between zones) fixed a long existing BUG in the virtio-balloon driver when pages would get migrated between zones. I did not try to reproduce on powerpc, but looking at the code, the same should apply to powerpc/cmm ever since it started using the balloon compaction infrastructure (luckily just recently). In case we have to migrate a ballon page to a newpage of another zone, the managed page count of both zones is wrong. Paired with memory offlining (which will adjust the managed page count), we can trigger kernel crashes and all kinds of different symptoms. Fix it by properly adjusting the managed page count when migrating if the zone changed. We'll temporarily modify the totalram page count. If this ever becomes a problem, we can fine tune by providing helpers that don't touch the totalram pages (e.g., adjust_zone_managed_page_count()). Fixes: fe030c9b85e6 ("powerpc/pseries/cmm: Implement balloon compaction") Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191216103058.4958-1-david@redhat.com
Diffstat (limited to 'arch/powerpc/lib/string_32.S')
0 files changed, 0 insertions, 0 deletions