Skip to content

Commit

Permalink
KVM: PPC: E500: Remove E500_TLB_DIRTY flag
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
agraf committed Oct 5, 2012
1 parent 166a2b7 commit 430c7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/kvm/e500.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#define E500_TLB_NUM 2

#define E500_TLB_VALID 1
#define E500_TLB_DIRTY 2
#define E500_TLB_BITMAP 4
#define E500_TLB_BITMAP 2

struct tlbe_ref {
pfn_t pfn;
Expand Down
4 changes: 1 addition & 3 deletions arch/powerpc/kvm/e500_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 430c7ff

Please sign in to comment.