• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/kvm/

Lines Matching defs:tlbsel

36 	int i, tlbsel;
41 for (tlbsel = 0; tlbsel < 2; tlbsel++) {
42 printk("Guest TLB%d:\n", tlbsel);
43 for (i = 0; i < vcpu_e500->guest_tlb_size[tlbsel]; i++) {
44 tlbe = &vcpu_e500->guest_tlb[tlbsel][i];
47 tlbsel, i, tlbe->mas1, tlbe->mas2,
52 for (tlbsel = 0; tlbsel < 2; tlbsel++) {
53 printk("Shadow TLB%d:\n", tlbsel);
54 for (i = 0; i < vcpu_e500->shadow_tlb_size[tlbsel]; i++) {
55 tlbe = &vcpu_e500->shadow_tlb[tlbsel][i];
58 tlbsel, i, tlbe->mas1, tlbe->mas2,
124 int tlbsel, int esel)
126 struct tlbe *stlbe = &vcpu_e500->shadow_tlb[tlbsel][esel];
129 if (tlbsel == 0) {
173 gva_t eaddr, int tlbsel, unsigned int pid, int as)
177 for (i = 0; i < vcpu_e500->guest_tlb_size[tlbsel]; i++) {
178 struct tlbe *tlbe = &vcpu_e500->guest_tlb[tlbsel][i];
204 int tlbsel, int esel)
206 struct tlbe *stlbe = &vcpu_e500->shadow_tlb[tlbsel][esel];
207 struct page *page = vcpu_e500->shadow_pages[tlbsel][esel];
210 vcpu_e500->shadow_pages[tlbsel][esel] = NULL;
222 int tlbsel, int esel)
224 struct tlbe *stlbe = &vcpu_e500->shadow_tlb[tlbsel][esel];
226 kvmppc_e500_shadow_release(vcpu_e500, tlbsel, esel);
228 trace_kvm_stlb_inval(index_of(tlbsel, esel), stlbe->mas1, stlbe->mas2,
265 int tlbsel;
268 tlbsel = (vcpu_e500->mas4 >> 28) & 0x1;
269 victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
273 vcpu_e500->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim)
274 | MAS0_NV(vcpu_e500->guest_tlb_nv[tlbsel]);
288 u64 gvaddr, gfn_t gfn, struct tlbe *gtlbe, int tlbsel, int esel)
294 stlbe = &vcpu_e500->shadow_tlb[tlbsel][esel];
306 kvmppc_e500_shadow_release(vcpu_e500, tlbsel, esel);
308 vcpu_e500->shadow_pages[tlbsel][esel] = new_page;
321 trace_kvm_stlb_write(index_of(tlbsel, esel), stlbe->mas1, stlbe->mas2,
326 int tlbsel, int esel)
330 gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
334 gtlbe, tlbsel, esel);
373 int tlbsel, int esel)
375 struct tlbe *gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
380 if (tlbsel == 1) {
385 kvmppc_e500_stlbe_invalidate(vcpu_e500, tlbsel, esel);
413 int esel, tlbsel;
421 tlbsel = (ea >> 3) & 0x1;
425 for (esel = 0; esel < vcpu_e500->guest_tlb_size[tlbsel]; esel++)
426 kvmppc_e500_gtlbe_invalidate(vcpu_e500, tlbsel, esel);
429 esel = kvmppc_e500_tlb_index(vcpu_e500, ea, tlbsel,
432 kvmppc_e500_gtlbe_invalidate(vcpu_e500, tlbsel, esel);
443 int tlbsel, esel;
446 tlbsel = get_tlb_tlbsel(vcpu_e500);
447 esel = get_tlb_esel(vcpu_e500, tlbsel);
449 gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
451 vcpu_e500->mas0 |= MAS0_NV(vcpu_e500->guest_tlb_nv[tlbsel]);
465 int esel, tlbsel;
471 for (tlbsel = 0; tlbsel < 2; tlbsel++) {
472 esel = kvmppc_e500_tlb_index(vcpu_e500, ea, tlbsel, pid, as);
474 gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
480 vcpu_e500->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(esel)
481 | MAS0_NV(vcpu_e500->guest_tlb_nv[tlbsel]);
490 tlbsel = vcpu_e500->mas4 >> 28 & 0x1;
491 victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
493 vcpu_e500->mas0 = MAS0_TLBSEL(tlbsel) | MAS0_ESEL(victim)
494 | MAS0_NV(vcpu_e500->guest_tlb_nv[tlbsel]);
514 int tlbsel, esel, stlbsel, sesel;
516 tlbsel = get_tlb_tlbsel(vcpu_e500);
517 esel = get_tlb_esel(vcpu_e500, tlbsel);
519 gtlbe = &vcpu_e500->guest_tlb[tlbsel][esel];
521 if (get_tlb_v(gtlbe) && tlbsel == 1) {
538 switch (tlbsel) {
614 int tlbsel, i;
616 for (tlbsel = 0; tlbsel < 2; tlbsel++)
617 for (i = 0; i < vcpu_e500->guest_tlb_size[tlbsel]; i++)
618 kvmppc_e500_shadow_release(vcpu_e500, tlbsel, i);
628 int tlbsel = tlbsel_of(index);
632 switch (tlbsel) {
641 = &vcpu_e500->guest_tlb[tlbsel][esel];
659 int esel, tlbsel;
661 for (tlbsel = 0; tlbsel < 2; tlbsel++) {
662 esel = kvmppc_e500_tlb_index(vcpu_e500, eaddr, tlbsel, pid, as);
664 return index_of(tlbsel, esel);