aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharat Bhushan <r65777@freescale.com>2013-08-07 06:03:45 -0400
committerAlexander Graf <agraf@suse.de>2013-10-17 08:49:38 -0400
commit84e4d632b5455082b458844b8b8cf48406e001ce (patch)
tree9c170e02d960bdcc1164c317717c218fa00bb06f
parentca8ccbd41dcca5ef092d0d8bb972ac9307925cfe (diff)
kvm: powerpc: e500: mark page accessed when mapping a guest page
Mark the guest page as accessed so that there is likely less chances of this page getting swap-out. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--arch/powerpc/kvm/e500_mmu_host.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_mmu_host.c b/arch/powerpc/kvm/e500_mmu_host.c
index 1c6a9d729df4..8f0d532522db 100644
--- a/arch/powerpc/kvm/e500_mmu_host.c
+++ b/arch/powerpc/kvm/e500_mmu_host.c
@@ -253,6 +253,9 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref,
253 ref->pfn = pfn; 253 ref->pfn = pfn;
254 ref->flags |= E500_TLB_VALID; 254 ref->flags |= E500_TLB_VALID;
255 255
256 /* Mark the page accessed */
257 kvm_set_pfn_accessed(pfn);
258
256 if (tlbe_is_writable(gtlbe)) 259 if (tlbe_is_writable(gtlbe))
257 kvm_set_pfn_dirty(pfn); 260 kvm_set_pfn_dirty(pfn);
258} 261}