Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215829
b: refs/heads/master
c: e7c1d14
h: refs/heads/master
i:
  215827: a4216bc
v: v3
  • Loading branch information
Alexander Graf authored and Avi Kivity committed Oct 24, 2010
1 parent 22df8da commit a36cbf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e602847d9c2d6b487bda62bbbe550db40ca912f
refs/heads/master: e7c1d14e3bf40b87e6a3f68964b36dbb2c875c0f
14 changes: 8 additions & 6 deletions trunk/arch/powerpc/kvm/book3s_mmu_hpte.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,31 @@ static void free_pte_rcu(struct rcu_head *head)

static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte)
{
/* pte already invalidated? */
if (hlist_unhashed(&pte->list_pte))
return;

trace_kvm_book3s_mmu_invalidate(pte);

/* Different for 32 and 64 bit */
kvmppc_mmu_invalidate_pte(vcpu, pte);

spin_lock(&vcpu->arch.mmu_lock);

/* pte already invalidated in between? */
if (hlist_unhashed(&pte->list_pte)) {
spin_unlock(&vcpu->arch.mmu_lock);
return;
}

hlist_del_init_rcu(&pte->list_pte);
hlist_del_init_rcu(&pte->list_pte_long);
hlist_del_init_rcu(&pte->list_vpte);
hlist_del_init_rcu(&pte->list_vpte_long);

spin_unlock(&vcpu->arch.mmu_lock);

if (pte->pte.may_write)
kvm_release_pfn_dirty(pte->pfn);
else
kvm_release_pfn_clean(pte->pfn);

spin_unlock(&vcpu->arch.mmu_lock);

vcpu->arch.hpte_cache_count--;
call_rcu(&pte->rcu_head, free_pte_rcu);
}
Expand Down

0 comments on commit a36cbf5

Please sign in to comment.