Skip to content

Commit

Permalink
kvm: powerpc: e500: mark page accessed when mapping a guest page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bharat Bhushan authored and Alexander Graf committed Oct 17, 2013
1 parent ca8ccbd commit 84e4d63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/kvm/e500_mmu_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref,
ref->pfn = pfn;
ref->flags |= E500_TLB_VALID;

/* Mark the page accessed */
kvm_set_pfn_accessed(pfn);

if (tlbe_is_writable(gtlbe))
kvm_set_pfn_dirty(pfn);
}
Expand Down

0 comments on commit 84e4d63

Please sign in to comment.