s390/kvm: support collaborative memory management
authorKonstantin Weitz <konstantin.weitz@gmail.com>
Wed, 17 Apr 2013 15:36:29 +0000 (17:36 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 21 Feb 2014 07:50:19 +0000 (08:50 +0100)
commitb31288fa83b2bcc8834e1e208e9526b8bd5ce361
tree97b2372c7eeb7d7e792042e91f6489900aa38dfc
parent45961722f8e30ceab9d135b1ddc0947d53aef7c3
s390/kvm: support collaborative memory management

This patch enables Collaborative Memory Management (CMM) for kvm
on s390. CMM allows the guest to inform the host about page usage
(see arch/s390/mm/cmm.c). The host uses this information to avoid
swapping in unused pages in the page fault handler. Further, a CPU
provided list of unused invalid pages is processed to reclaim swap
space of not yet accessed unused pages.

[ Martin Schwidefsky: patch reordering and cleanup ]

Signed-off-by: Konstantin Weitz <konstantin.weitz@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/pgtable.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c
arch/s390/mm/pgtable.c