projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca8ccbd
)
kvm: powerpc: e500: mark page accessed when mapping a guest page
author
Bharat Bhushan
<r65777@freescale.com>
Wed, 7 Aug 2013 10:03:45 +0000
(15:33 +0530)
committer
Alexander Graf
<agraf@suse.de>
Thu, 17 Oct 2013 12:49:38 +0000
(14:49 +0200)
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>
arch/powerpc/kvm/e500_mmu_host.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kvm/e500_mmu_host.c
b/arch/powerpc/kvm/e500_mmu_host.c
index 1c6a9d729df4a26ca3ad6c9f1c94008d681f7d42..8f0d532522dbf00c786c8fe191dadcf08eb23464 100644
(file)
--- 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,
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);
}