Home
last modified time | relevance | path

Searched refs:vcpu_e500 (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/arch/powerpc/kvm/
De500_tlb.c34 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); in kvmppc_dump_tlbs() local
43 for (i = 0; i < vcpu_e500->guest_tlb_size[tlbsel]; i++) { in kvmppc_dump_tlbs()
44 tlbe = &vcpu_e500->guest_tlb[tlbsel][i]; in kvmppc_dump_tlbs()
54 for (i = 0; i < vcpu_e500->shadow_tlb_size[tlbsel]; i++) { in kvmppc_dump_tlbs()
55 tlbe = &vcpu_e500->shadow_tlb[tlbsel][i]; in kvmppc_dump_tlbs()
65 struct kvmppc_vcpu_e500 *vcpu_e500) in tlb0_get_next_victim() argument
69 victim = vcpu_e500->guest_tlb_nv[0]++; in tlb0_get_next_victim()
70 if (unlikely(vcpu_e500->guest_tlb_nv[0] >= KVM_E500_TLB0_WAY_NUM)) in tlb0_get_next_victim()
71 vcpu_e500->guest_tlb_nv[0] = 0; in tlb0_get_next_victim()
123 static inline void write_host_tlbe(struct kvmppc_vcpu_e500 *vcpu_e500, in write_host_tlbe() argument
[all …]
De500_emulate.c75 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); in kvmppc_core_emulate_mtspr() local
81 vcpu_e500->pid[0] = vcpu->arch.shadow_pid = in kvmppc_core_emulate_mtspr()
85 vcpu_e500->pid[1] = spr_val; break; in kvmppc_core_emulate_mtspr()
87 vcpu_e500->pid[2] = spr_val; break; in kvmppc_core_emulate_mtspr()
89 vcpu_e500->mas0 = spr_val; break; in kvmppc_core_emulate_mtspr()
91 vcpu_e500->mas1 = spr_val; break; in kvmppc_core_emulate_mtspr()
93 vcpu_e500->mas2 = spr_val; break; in kvmppc_core_emulate_mtspr()
95 vcpu_e500->mas3 = spr_val; break; in kvmppc_core_emulate_mtspr()
97 vcpu_e500->mas4 = spr_val; break; in kvmppc_core_emulate_mtspr()
99 vcpu_e500->mas6 = spr_val; break; in kvmppc_core_emulate_mtspr()
[all …]
De500_tlb.h114 const struct kvmppc_vcpu_e500 *vcpu_e500) in get_cur_spid() argument
116 return (vcpu_e500->mas6 >> 16) & 0xff; in get_cur_spid()
120 const struct kvmppc_vcpu_e500 *vcpu_e500) in get_cur_sas() argument
122 return vcpu_e500->mas6 & 0x1; in get_cur_sas()
126 const struct kvmppc_vcpu_e500 *vcpu_e500) in get_tlb_tlbsel() argument
132 return (vcpu_e500->mas0 >> 28) & 0x1; in get_tlb_tlbsel()
136 const struct kvmppc_vcpu_e500 *vcpu_e500) in get_tlb_nv_bit() argument
138 return vcpu_e500->mas0 & 0xfff; in get_tlb_nv_bit()
142 const struct kvmppc_vcpu_e500 *vcpu_e500) in get_tlb_esel_bit() argument
144 return (vcpu_e500->mas0 >> 16) & 0xfff; in get_tlb_esel_bit()
[all …]
De500.c60 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); in kvmppc_core_vcpu_setup() local
62 kvmppc_e500_tlb_setup(vcpu_e500); in kvmppc_core_vcpu_setup()
101 struct kvmppc_vcpu_e500 *vcpu_e500; in kvmppc_core_vcpu_create() local
105 vcpu_e500 = kmem_cache_zalloc(kvm_vcpu_cache, GFP_KERNEL); in kvmppc_core_vcpu_create()
106 if (!vcpu_e500) { in kvmppc_core_vcpu_create()
111 vcpu = &vcpu_e500->vcpu; in kvmppc_core_vcpu_create()
116 err = kvmppc_e500_tlb_init(vcpu_e500); in kvmppc_core_vcpu_create()
127 kvmppc_e500_tlb_uninit(vcpu_e500); in kvmppc_core_vcpu_create()
131 kmem_cache_free(kvm_vcpu_cache, vcpu_e500); in kvmppc_core_vcpu_create()
138 struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu); in kvmppc_core_vcpu_free() local
[all …]