]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add reboot notifier to Collaborative Memory Manager
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 18 Dec 2008 11:13:49 +0000 (11:13 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 21 Dec 2008 03:21:15 +0000 (14:21 +1100)
commitbb7f7144851f36d0d69a7d26d7ab471ae1486aaf
treee9fb3bbbccee326d7ea0cbb4ffa8c4e7d31afcb7
parentb91df987a6ed2889d5b22170501e3062870900e8
powerpc: Add reboot notifier to Collaborative Memory Manager

When running Active Memory Sharing, pages can get marked as
"loaned" with the hypervisor by the CMM driver. This state gets
cleared by the system firmware when rebooting the partition.
When using kexec to boot a new kernel, this state never gets
cleared and the hypervisor and CMM driver can get out of sync
with respect to the number of pages currently marked "loaned".
Fix this by adding a reboot notifier to the CMM driver to deflate
the balloon and mark all pages as active.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/cmm.c