From: Marc Zyngier Date: Thu, 12 Mar 2015 18:16:51 +0000 (+0000) Subject: arm/arm64: KVM: Implement Stage-2 page aging X-Git-Tag: omap-for-v4.2/o2_dc~192^2~20^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35307b9a5f7ebcc8d8db41c73b69c131b48ace2b;p=pandora-kernel.git arm/arm64: KVM: Implement Stage-2 page aging Until now, KVM/arm didn't care much for page aging (who was swapping anyway?), and simply provided empty hooks to the core KVM code. With server-type systems now being available, things are quite different. This patch implements very simple support for page aging, by clearing the Access flag in the Stage-2 page tables. On access fault, the current fault handling will write the PTE or PMD again, putting the Access flag back on. It should be possible to implement a much faster handling for Access faults, but that's left for a later patch. With this in place, performance in VMs is degraded much more gracefully. Signed-off-by: Marc Zyngier Acked-by: Christoffer Dall Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed