Home
last modified time | relevance | path

Searched refs:to_book3s (Results 1 – 11 of 11) sorted by relevance

/arch/powerpc/kvm/
Dbook3s_emulate.c343 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_find_bat()
374 to_book3s(vcpu)->sdr1 = spr_val; in kvmppc_core_emulate_mtspr_pr()
383 to_book3s(vcpu)->hior = spr_val; in kvmppc_core_emulate_mtspr_pr()
400 to_book3s(vcpu)->hid[0] = spr_val; in kvmppc_core_emulate_mtspr_pr()
403 to_book3s(vcpu)->hid[1] = spr_val; in kvmppc_core_emulate_mtspr_pr()
406 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr_pr()
409 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr_pr()
434 to_book3s(vcpu)->hid[4] = spr_val; in kvmppc_core_emulate_mtspr_pr()
437 to_book3s(vcpu)->hid[5] = spr_val; in kvmppc_core_emulate_mtspr_pr()
451 to_book3s(vcpu)->gqr[sprn - SPRN_GQR0] = spr_val; in kvmppc_core_emulate_mtspr_pr()
[all …]
Dbook3s_mmu_hpte.c70 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_map()
114 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in invalidate_pte()
145 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_all()
163 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_page()
182 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_long()
225 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_short()
246 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_64k()
268 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_long()
311 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_pflush()
333 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_next()
[all …]
Dbook3s_32_mmu_host.c100 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid()
107 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid()
278 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map()
292 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in create_sid_map()
364 __destroy_context(to_book3s(vcpu)->context_id[i]); in kvmppc_mmu_destroy_pr()
373 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init()
406 __destroy_context(to_book3s(vcpu)->context_id[j]); in kvmppc_mmu_init()
Dbook3s_64_mmu_host.c66 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid()
72 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid()
234 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map()
248 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in create_sid_map()
386 __destroy_context(to_book3s(vcpu)->context_id[0]); in kvmppc_mmu_destroy_pr()
391 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init()
Dbook3s_pr.c98 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()
99 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()
125 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()
126 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()
345 msr &= to_book3s(vcpu)->msr_mask; in kvmppc_set_msr_pr()
411 if (!to_book3s(vcpu)->hior_explicit) in kvmppc_set_pvr_pr()
412 to_book3s(vcpu)->hior = 0xfff00000; in kvmppc_set_pvr_pr()
413 to_book3s(vcpu)->msr_mask = 0xffffffffffffffffULL; in kvmppc_set_pvr_pr()
419 if (!to_book3s(vcpu)->hior_explicit) in kvmppc_set_pvr_pr()
420 to_book3s(vcpu)->hior = 0; in kvmppc_set_pvr_pr()
[all …]
Dbook3s_32_mmu.c114 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_get_pteg()
148 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_xlate_bat()
294 to_book3s(vcpu)->sdr1, ptegp); in kvmppc_mmu_book3s_32_xlate_pte()
Dbook3s_64_mmu.c137 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_64_get_pteg()
387 vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_64_slbmte()
653 return (to_book3s(vcpu)->hid[5] & 0x80); in kvmppc_mmu_book3s_64_is_dcbz32()
Dtrace_pr.h133 __entry->count = to_book3s(vcpu)->hpte_cache_count;
Dbook3s_pr_papr.c28 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in get_pteg_addr()
Dbook3s.c86 return to_book3s(vcpu)->hior; in kvmppc_interrupt_offset()
/arch/powerpc/include/asm/
Dkvm_book3s.h195 static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) in to_book3s() function