Commit 430c7ff5 authored by Alexander Graf's avatar Alexander Graf

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: default avatarAlexander Graf <agraf@suse.de>
parent 166a2b70
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
#define E500_TLB_NUM 2 #define E500_TLB_NUM 2
#define E500_TLB_VALID 1 #define E500_TLB_VALID 1
#define E500_TLB_DIRTY 2 #define E500_TLB_BITMAP 2
#define E500_TLB_BITMAP 4
struct tlbe_ref { struct tlbe_ref {
pfn_t pfn; pfn_t pfn;
......
...@@ -303,10 +303,8 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref, ...@@ -303,10 +303,8 @@ static inline void kvmppc_e500_ref_setup(struct tlbe_ref *ref,
ref->pfn = pfn; ref->pfn = pfn;
ref->flags = E500_TLB_VALID; ref->flags = E500_TLB_VALID;
if (tlbe_is_writable(gtlbe)) { if (tlbe_is_writable(gtlbe))
ref->flags |= E500_TLB_DIRTY;
kvm_set_pfn_dirty(pfn); kvm_set_pfn_dirty(pfn);
}
} }
static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref) static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment