dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Alexander Graf 2012-08-15 11:42:07 +02:00
parent 166a2b7000
commit 430c7ff52f
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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)