Skip to content

Commit

Permalink
Automatic merge of 'topic/ppc-kvm-test' into merge-test (2024-10-22 1…
Browse files Browse the repository at this point in the history
…1:14)
  • Loading branch information
mpe committed Oct 22, 2024
2 parents 9e17418 + 1db6a4e commit 15bf171
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/powerpc/kvm/book3s_mmu_hpte.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@ void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte)
spin_unlock(&vcpu3s->mmu_lock);
}

static void free_pte_rcu(struct rcu_head *head)
{
struct hpte_cache *pte = container_of(head, struct hpte_cache, rcu_head);
kmem_cache_free(hpte_cache, pte);
}

static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte)
{
struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu);
Expand Down Expand Up @@ -126,7 +120,7 @@ static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte)

spin_unlock(&vcpu3s->mmu_lock);

call_rcu(&pte->rcu_head, free_pte_rcu);
kfree_rcu(pte, rcu_head);
}

static void kvmppc_mmu_pte_flush_all(struct kvm_vcpu *vcpu)
Expand Down

0 comments on commit 15bf171

Please sign in to comment.