Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356885
b: refs/heads/master
c: 483ba97
h: refs/heads/master
i:
  356883: 460b551
v: v3
  • Loading branch information
Alexander Graf committed Jan 24, 2013
1 parent ac102ef commit ae33fed
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 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: c015c62b13498629809185eb0ff04e3f13d1afb6
refs/heads/master: 483ba97c0fafaade3a0ee61217ca5123b0d85c03
6 changes: 2 additions & 4 deletions trunk/arch/powerpc/kvm/e500_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,8 @@ static void free_gtlb(struct kvmppc_vcpu_e500 *vcpu_e500)
{
int i;

clear_tlb1_bitmap(vcpu_e500);
kvmppc_core_flush_tlb(&vcpu_e500->vcpu);
kfree(vcpu_e500->g2h_tlb1_map);

clear_tlb_refs(vcpu_e500);
kfree(vcpu_e500->gtlb_priv[0]);
kfree(vcpu_e500->gtlb_priv[1]);

Expand Down Expand Up @@ -735,7 +733,7 @@ int kvm_vcpu_ioctl_dirty_tlb(struct kvm_vcpu *vcpu,
{
struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu);
kvmppc_recalc_tlb1map_range(vcpu_e500);
clear_tlb_refs(vcpu_e500);
kvmppc_core_flush_tlb(vcpu);
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kvm/e500_mmu_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static inline void kvmppc_e500_ref_release(struct tlbe_ref *ref)
}
}

void clear_tlb1_bitmap(struct kvmppc_vcpu_e500 *vcpu_e500)
static void clear_tlb1_bitmap(struct kvmppc_vcpu_e500 *vcpu_e500)
{
if (vcpu_e500->g2h_tlb1_map)
memset(vcpu_e500->g2h_tlb1_map, 0,
Expand All @@ -284,7 +284,7 @@ static void clear_tlb_privs(struct kvmppc_vcpu_e500 *vcpu_e500)
}
}

void clear_tlb_refs(struct kvmppc_vcpu_e500 *vcpu_e500)
static void clear_tlb_refs(struct kvmppc_vcpu_e500 *vcpu_e500)
{
int stlbsel = 1;
int i;
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/kvm/e500_mmu_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
void inval_gtlbe_on_host(struct kvmppc_vcpu_e500 *vcpu_e500, int tlbsel,
int esel);

void clear_tlb1_bitmap(struct kvmppc_vcpu_e500 *vcpu_e500);
void clear_tlb_refs(struct kvmppc_vcpu_e500 *vcpu_e500);
int e500_mmu_host_init(struct kvmppc_vcpu_e500 *vcpu_e500);
void e500_mmu_host_uninit(struct kvmppc_vcpu_e500 *vcpu_e500);

Expand Down

0 comments on commit ae33fed

Please sign in to comment.