Searched refs:to_book3s (Results 1 – 11 of 11) sorted by relevance
/linux-3.4.99/arch/powerpc/kvm/ |
D | book3s_emulate.c | 293 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_find_bat() 325 to_book3s(vcpu)->sdr1 = spr_val; in kvmppc_core_emulate_mtspr() 334 to_book3s(vcpu)->hior = spr_val; in kvmppc_core_emulate_mtspr() 351 to_book3s(vcpu)->hid[0] = spr_val; in kvmppc_core_emulate_mtspr() 354 to_book3s(vcpu)->hid[1] = spr_val; in kvmppc_core_emulate_mtspr() 357 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr() 360 to_book3s(vcpu)->hid[2] = spr_val; in kvmppc_core_emulate_mtspr() 385 to_book3s(vcpu)->hid[4] = spr_val; in kvmppc_core_emulate_mtspr() 388 to_book3s(vcpu)->hid[5] = spr_val; in kvmppc_core_emulate_mtspr() 402 to_book3s(vcpu)->gqr[sprn - SPRN_GQR0] = spr_val; in kvmppc_core_emulate_mtspr() [all …]
|
D | book3s_mmu_hpte.c | 62 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_map() 97 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in invalidate_pte() 130 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_all() 149 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_page() 169 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_long() 213 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_short() 234 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_long() 273 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_pflush() 296 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_next() 323 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_init()
|
D | book3s_pr.c | 63 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load() 64 memcpy(&get_paca()->shadow_vcpu, to_book3s(vcpu)->shadow_vcpu, in kvmppc_core_vcpu_load() 66 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load() 71 current->thread.kvm_shadow_vcpu = to_book3s(vcpu)->shadow_vcpu; in kvmppc_core_vcpu_load() 79 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put() 80 memcpy(to_book3s(vcpu)->shadow_vcpu, &get_paca()->shadow_vcpu, in kvmppc_core_vcpu_put() 82 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put() 116 msr &= to_book3s(vcpu)->msr_mask; in kvmppc_set_msr() 161 if (!to_book3s(vcpu)->hior_explicit) in kvmppc_set_pvr() 162 to_book3s(vcpu)->hior = 0xfff00000; in kvmppc_set_pvr() [all …]
|
D | book3s_32_mmu_host.c | 99 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid() 106 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid() 261 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map() 275 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in create_sid_map() 347 __destroy_context(to_book3s(vcpu)->context_id[i]); in kvmppc_mmu_destroy() 356 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init() 389 __destroy_context(to_book3s(vcpu)->context_id[j]); in kvmppc_mmu_init()
|
D | book3s_64_mmu_host.c | 65 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in find_sid_vsid() 71 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask]; in find_sid_vsid() 177 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map() 191 map = &to_book3s(vcpu)->sid_map[sid_map_mask]; in create_sid_map() 309 __destroy_context(to_book3s(vcpu)->context_id[0]); in kvmppc_mmu_destroy() 314 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init()
|
D | book3s_64_mmu.c | 162 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_64_xlate() 288 eaddr, to_book3s(vcpu)->sdr1, ptegp); in kvmppc_mmu_book3s_64_xlate() 323 vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_64_slbmte() 514 return (to_book3s(vcpu)->hid[5] & 0x80); in kvmppc_mmu_book3s_64_is_dcbz32()
|
D | book3s_32_mmu.c | 150 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_xlate_bat() 206 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_xlate_pte() 294 to_book3s(vcpu)->sdr1, ptegp); in kvmppc_mmu_book3s_32_xlate_pte()
|
D | book3s_pr_papr.c | 24 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in get_pteg_addr()
|
D | trace.h | 258 __entry->count = to_book3s(vcpu)->hpte_cache_count;
|
/linux-3.4.99/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 174 static inline struct kvmppc_vcpu_book3s *to_book3s(struct kvm_vcpu *vcpu) in to_book3s() function 194 return to_book3s(vcpu)->hior; in kvmppc_interrupt_offset() 212 to_book3s(vcpu)->shadow_vcpu->gpr[num] = val; in kvmppc_set_gpr() 233 to_book3s(vcpu)->shadow_vcpu->cr = val; in kvmppc_set_cr() 249 to_book3s(vcpu)->shadow_vcpu->xer = val; in kvmppc_set_xer()
|
D | kvm_book3s_32.h | 25 return to_book3s(vcpu)->shadow_vcpu; in svcpu_get()
|