Lines Matching refs:to_book3s
116 new_pc = to_book3s(vcpu)->hior + vec; in kvmppc_inject_interrupt_pr()
136 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()
137 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()
168 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()
169 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()
309 to_book3s(vcpu)->vtb += get_vtb() - vcpu->arch.entry_vtb; in kvmppc_copy_from_svcpu()
489 msr &= to_book3s(vcpu)->msr_mask; in kvmppc_set_msr_pr()
559 if (!to_book3s(vcpu)->hior_explicit) in kvmppc_set_pvr_pr()
560 to_book3s(vcpu)->hior = 0xfff00000; in kvmppc_set_pvr_pr()
561 to_book3s(vcpu)->msr_mask = 0xffffffffffffffffULL; in kvmppc_set_pvr_pr()
567 if (!to_book3s(vcpu)->hior_explicit) in kvmppc_set_pvr_pr()
568 to_book3s(vcpu)->hior = 0; in kvmppc_set_pvr_pr()
569 to_book3s(vcpu)->msr_mask = 0xffffffffULL; in kvmppc_set_pvr_pr()
585 to_book3s(vcpu)->msr_mask &= ~(MSR_FE0 | MSR_FE1); in kvmppc_set_pvr_pr()
1460 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_get_sregs_pr()
1465 sregs->u.s.sdr1 = to_book3s(vcpu)->sdr1; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1487 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_set_sregs_pr()
1540 *val = get_reg_val(id, to_book3s(vcpu)->hior); in kvmppc_get_one_reg_pr()
1543 *val = get_reg_val(id, to_book3s(vcpu)->vtb); in kvmppc_get_one_reg_pr()
1645 to_book3s(vcpu)->hior = set_reg_val(id, *val); in kvmppc_set_one_reg_pr()
1646 to_book3s(vcpu)->hior_explicit = true; in kvmppc_set_one_reg_pr()
1649 to_book3s(vcpu)->vtb = set_reg_val(id, *val); in kvmppc_set_one_reg_pr()
1800 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_core_vcpu_free_pr()