diff options
author | Alexander Graf <agraf@suse.de> | 2012-08-15 05:42:07 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-05 17:38:48 -0400 |
commit | 430c7ff52ffb902e1e08b255b93c28fcad8cb9ef (patch) | |
tree | 4c3ec84fa1c7fe60fc6a2eefc1c818bf7845f2e2 | |
parent | 166a2b7000c388aee81168987ce2eddb6783f550 (diff) |
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>
-rw-r--r-- | arch/powerpc/kvm/e500.h | 3 | ||||
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h index aa8b81428bf4..d1622864549e 100644 --- a/arch/powerpc/kvm/e500.h +++ b/arch/powerpc/kvm/e500.h | |||
@@ -27,8 +27,7 @@ | |||
27 | #define E500_TLB_NUM 2 | 27 | #define E500_TLB_NUM 2 |
28 | 28 | ||
29 | #define E500_TLB_VALID 1 | 29 | #define E500_TLB_VALID 1 |
30 | #define E500_TLB_DIRTY 2 | 30 | #define E500_TLB_BITMAP 2 |
31 | #define E500_TLB_BITMAP 4 | ||
32 | 31 | ||
33 | struct tlbe_ref { | 32 | struct tlbe_ref { |
34 | pfn_t pfn; | 33 | pfn_t pfn; |
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, | |||
303 | ref->pfn = pfn; | 303 | ref->pfn = pfn; |
304 | ref->flags = E500_TLB_VALID; | 304 | ref->flags = E500_TLB_VALID; |
305 | 305 | ||
306 | if (tlbe_is_writable(gtlbe)) { | 306 | if (tlbe_is_writable(gtlbe)) |
307 | ref->flags |= E500_TLB_DIRTY; | ||
308 | kvm_set_pfn_dirty(pfn); | 307 | kvm_set_pfn_dirty(pfn); |
309 | } | ||
310 | } | 308 | } |
311 | 309 | ||
312 | static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref) | 310 | static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref) |