summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/e500_tlb.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-08-15 11:42:07 +0200
committerAlexander Graf <agraf@suse.de>2012-10-05 23:38:48 +0200
commit430c7ff52ffb902e1e08b255b93c28fcad8cb9ef (patch)
tree4c3ec84fa1c7fe60fc6a2eefc1c818bf7845f2e2 /arch/powerpc/kvm/e500_tlb.c
parentKVM: PPC: Use symbols for exit trace (diff)
downloadlinux-430c7ff52ffb902e1e08b255b93c28fcad8cb9ef.tar.xz
linux-430c7ff52ffb902e1e08b255b93c28fcad8cb9ef.zip
KVM: PPC: E500: Remove E500_TLB_DIRTY flag
Since we always mark pages as dirty immediately when mapping them read/write now, there's no need for the dirty flag in our cache. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to '')
-rw-r--r--arch/powerpc/kvm/e500_tlb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c
index 1af6fab58995..43489a8fa985 100644
--- a/arch/powerpc/kvm/e500_tlb.c
+++ b/arch/powerpc/kvm/e500_tlb.c
@@ -303,10 +303,8 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref,
ref->pfn = pfn;
ref->flags = E500_TLB_VALID;
- if (tlbe_is_writable(gtlbe)) {
- ref->flags |= E500_TLB_DIRTY;
+ if (tlbe_is_writable(gtlbe))
kvm_set_pfn_dirty(pfn);
- }
}
static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref)