Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133725
b: refs/heads/master
c: 9aa4dd5
h: refs/heads/master
i:
  133723: ef625be
v: v3
  • Loading branch information
Liu Yu authored and Avi Kivity committed Mar 24, 2009
1 parent 50afc4a commit c36992a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: fb2838d446f6ee7e13e4149e08ec138753c5c450
refs/heads/master: 9aa4dd5e5f47a5feb96fc394fccf0265ab7d85a4
10 changes: 5 additions & 5 deletions trunk/arch/powerpc/kvm/e500_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <asm/kvm_ppc.h>
#include <asm/kvm_e500.h>

#include "../mm/mmu_decl.h"
#include "e500_tlb.h"

#define to_htlb1_esel(esel) (tlb1_entry_num - (esel) - 1)
Expand Down Expand Up @@ -158,7 +159,7 @@ void kvmppc_e500_tlb_load(struct kvm_vcpu *vcpu, int cpu)

void kvmppc_e500_tlb_put(struct kvm_vcpu *vcpu)
{
_tlbia();
_tlbil_all();
}

/* Search the guest TLB for a matching entry. */
Expand Down Expand Up @@ -362,11 +363,10 @@ void kvmppc_mmu_priv_switch(struct kvm_vcpu *vcpu, int usermode)
int i;

/* XXX Replace loop with fancy data structures. */
/* needn't set modified since tlbia will make TLB1 coherent */
for (i = 0; i < tlb1_max_shadow_size(); i++)
kvmppc_e500_stlbe_invalidate(vcpu_e500, 1, i);

_tlbia();
_tlbil_all();
}
}

Expand Down Expand Up @@ -417,7 +417,7 @@ int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, int ra, int rb)
kvmppc_e500_gtlbe_invalidate(vcpu_e500, tlbsel, esel);
}

_tlbia();
_tlbil_all();

return EMULATE_DONE;
}
Expand Down Expand Up @@ -604,7 +604,7 @@ void kvmppc_mmu_destroy(struct kvm_vcpu *vcpu)
kvmppc_e500_shadow_release(vcpu_e500, tlbsel, i);

/* discard all guest mapping */
_tlbia();
_tlbil_all();
}

void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 eaddr, gpa_t gpaddr,
Expand Down

0 comments on commit c36992a

Please sign in to comment.