/arch/powerpc/kvm/ |
D | book3s_pr_papr.c | 37 long flags = kvmppc_get_gpr(vcpu, 4); in kvmppc_h_pr_enter() 38 long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_enter() 58 i = kvmppc_get_gpr(vcpu, 5) & 7UL; in kvmppc_h_pr_enter() 62 hpte[0] = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_enter() 63 hpte[1] = kvmppc_get_gpr(vcpu, 7); in kvmppc_h_pr_enter() 73 unsigned long flags= kvmppc_get_gpr(vcpu, 4); in kvmppc_h_pr_remove() 74 unsigned long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_remove() 75 unsigned long avpn = kvmppc_get_gpr(vcpu, 6); in kvmppc_h_pr_remove() 103 unsigned long flags = kvmppc_get_gpr(vcpu, 4); in kvmppc_h_pr_protect() 104 unsigned long pte_index = kvmppc_get_gpr(vcpu, 5); in kvmppc_h_pr_protect() [all …]
|
D | emulate.c | 188 ea = kvmppc_get_gpr(vcpu, rb); in kvmppc_emulate_instruction() 190 ea += kvmppc_get_gpr(vcpu, ra); in kvmppc_emulate_instruction() 199 kvmppc_get_gpr(vcpu, rs), in kvmppc_emulate_instruction() 206 kvmppc_get_gpr(vcpu, rs), in kvmppc_emulate_instruction() 215 ea = kvmppc_get_gpr(vcpu, rb); in kvmppc_emulate_instruction() 217 ea += kvmppc_get_gpr(vcpu, ra); in kvmppc_emulate_instruction() 220 kvmppc_get_gpr(vcpu, rs), in kvmppc_emulate_instruction() 240 ea = kvmppc_get_gpr(vcpu, rb); in kvmppc_emulate_instruction() 242 ea += kvmppc_get_gpr(vcpu, ra); in kvmppc_emulate_instruction() 312 kvmppc_get_gpr(vcpu, rs), in kvmppc_emulate_instruction() [all …]
|
D | book3s_emulate.c | 114 ulong rs = kvmppc_get_gpr(vcpu, get_rs(inst)); in kvmppc_core_emulate_op() 123 kvmppc_set_msr(vcpu, kvmppc_get_gpr(vcpu, get_rs(inst))); in kvmppc_core_emulate_op() 141 srnum = (kvmppc_get_gpr(vcpu, get_rb(inst)) >> 28) & 0xf; in kvmppc_core_emulate_op() 152 kvmppc_get_gpr(vcpu, get_rs(inst))); in kvmppc_core_emulate_op() 156 (kvmppc_get_gpr(vcpu, get_rb(inst)) >> 28) & 0xf, in kvmppc_core_emulate_op() 157 kvmppc_get_gpr(vcpu, get_rs(inst))); in kvmppc_core_emulate_op() 163 ulong addr = kvmppc_get_gpr(vcpu, get_rb(inst)); in kvmppc_core_emulate_op() 174 kvmppc_get_gpr(vcpu, get_rs(inst)), in kvmppc_core_emulate_op() 175 kvmppc_get_gpr(vcpu, get_rb(inst))); in kvmppc_core_emulate_op() 182 kvmppc_get_gpr(vcpu, get_rb(inst))); in kvmppc_core_emulate_op() [all …]
|
D | book3s_paired_singles.c | 688 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single() 698 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single() 711 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single() 721 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single() 741 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single() 745 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single() 755 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single() 759 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single() 832 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single() 836 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single() [all …]
|
D | 44x_emulate.c | 98 vcpu->arch.cpr0_cfgaddr = kvmppc_get_gpr(vcpu, rs); in kvmppc_core_emulate_op() 102 run->dcr.data = kvmppc_get_gpr(vcpu, rs); in kvmppc_core_emulate_op() 152 kvmppc_set_pid(vcpu, kvmppc_get_gpr(vcpu, rs)); break; in kvmppc_core_emulate_mtspr() 154 vcpu->arch.mmucr = kvmppc_get_gpr(vcpu, rs); break; in kvmppc_core_emulate_mtspr() 156 vcpu->arch.ccr0 = kvmppc_get_gpr(vcpu, rs); break; in kvmppc_core_emulate_mtspr() 158 vcpu->arch.ccr1 = kvmppc_get_gpr(vcpu, rs); break; in kvmppc_core_emulate_mtspr()
|
D | 44x_tlb.c | 446 gtlb_index = kvmppc_get_gpr(vcpu, ra); in kvmppc_44x_emul_tlbwe() 462 tlbe->word0 = kvmppc_get_gpr(vcpu, rs); in kvmppc_44x_emul_tlbwe() 466 tlbe->word1 = kvmppc_get_gpr(vcpu, rs); in kvmppc_44x_emul_tlbwe() 470 tlbe->word2 = kvmppc_get_gpr(vcpu, rs); in kvmppc_44x_emul_tlbwe() 507 ea = kvmppc_get_gpr(vcpu, rb); in kvmppc_44x_emul_tlbsx() 509 ea += kvmppc_get_gpr(vcpu, ra); in kvmppc_44x_emul_tlbsx()
|
D | book3s_hv.c | 91 r, kvmppc_get_gpr(vcpu, r), in kvmppc_dump_regs() 92 r+16, kvmppc_get_gpr(vcpu, r+16)); in kvmppc_dump_regs() 229 unsigned long req = kvmppc_get_gpr(vcpu, 3); in kvmppc_pseries_do_hcall() 235 ret = kvmppc_virtmode_h_enter(vcpu, kvmppc_get_gpr(vcpu, 4), in kvmppc_pseries_do_hcall() 236 kvmppc_get_gpr(vcpu, 5), in kvmppc_pseries_do_hcall() 237 kvmppc_get_gpr(vcpu, 6), in kvmppc_pseries_do_hcall() 238 kvmppc_get_gpr(vcpu, 7)); in kvmppc_pseries_do_hcall() 243 target = kvmppc_get_gpr(vcpu, 4); in kvmppc_pseries_do_hcall() 261 ret = do_h_register_vpa(vcpu, kvmppc_get_gpr(vcpu, 4), in kvmppc_pseries_do_hcall() 262 kvmppc_get_gpr(vcpu, 5), in kvmppc_pseries_do_hcall() [all …]
|
D | booke_emulate.c | 73 kvmppc_set_msr(vcpu, kvmppc_get_gpr(vcpu, rs)); in kvmppc_booke_emulate_op() 79 | (kvmppc_get_gpr(vcpu, rs) & MSR_EE); in kvmppc_booke_emulate_op() 105 ulong spr_val = kvmppc_get_gpr(vcpu, rs); in kvmppc_booke_emulate_mtspr()
|
D | powerpc.c | 48 int nr = kvmppc_get_gpr(vcpu, 11); in kvmppc_kvm_pv() 50 unsigned long __maybe_unused param1 = kvmppc_get_gpr(vcpu, 3); in kvmppc_kvm_pv() 51 unsigned long __maybe_unused param2 = kvmppc_get_gpr(vcpu, 4); in kvmppc_kvm_pv() 52 unsigned long __maybe_unused param3 = kvmppc_get_gpr(vcpu, 5); in kvmppc_kvm_pv() 53 unsigned long __maybe_unused param4 = kvmppc_get_gpr(vcpu, 6); in kvmppc_kvm_pv()
|
D | booke.c | 75 kvmppc_get_gpr(vcpu, i), in kvmppc_dump_vcpu() 76 kvmppc_get_gpr(vcpu, i+1), in kvmppc_dump_vcpu() 77 kvmppc_get_gpr(vcpu, i+2), in kvmppc_dump_vcpu() 78 kvmppc_get_gpr(vcpu, i+3)); in kvmppc_dump_vcpu() 206 ulong crit_r1 = kvmppc_get_gpr(vcpu, 1); in kvmppc_booke_irqprio_deliver() 511 (((u32)kvmppc_get_gpr(vcpu, 0)) == KVM_SC_MAGIC_R0)) { in kvmppc_handle_exit() 705 regs->gpr[i] = kvmppc_get_gpr(vcpu, i); in kvm_arch_vcpu_ioctl_get_regs()
|
D | book3s_pr.c | 682 ulong cmd = kvmppc_get_gpr(vcpu, 3); in kvmppc_handle_exit() 694 ulong gpr = kvmppc_get_gpr(vcpu, 4 + i); in kvmppc_handle_exit() 701 (((u32)kvmppc_get_gpr(vcpu, 3)) == OSI_SC_MAGIC_R3) && in kvmppc_handle_exit() 702 (((u32)kvmppc_get_gpr(vcpu, 4)) == OSI_SC_MAGIC_R4)) { in kvmppc_handle_exit() 709 gprs[i] = kvmppc_get_gpr(vcpu, i); in kvmppc_handle_exit() 713 (((u32)kvmppc_get_gpr(vcpu, 0)) == KVM_SC_MAGIC_R0)) { in kvmppc_handle_exit()
|
D | e500_emulate.c | 77 ulong spr_val = kvmppc_get_gpr(vcpu, rs); in kvmppc_core_emulate_mtspr()
|
D | e500_tlb.c | 826 ea = ((ra) ? kvmppc_get_gpr(vcpu, ra) : 0) + kvmppc_get_gpr(vcpu, rb); in kvmppc_e500_emul_tlbivax() 880 ea = kvmppc_get_gpr(vcpu, rb); in kvmppc_e500_emul_tlbsx()
|
D | book3s.c | 432 regs->gpr[i] = kvmppc_get_gpr(vcpu, i); in kvm_arch_vcpu_ioctl_get_regs()
|
/arch/powerpc/include/asm/ |
D | kvm_booke.h | 31 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) in kvmppc_get_gpr() function
|
D | kvm_book3s.h | 217 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) in kvmppc_get_gpr() function 338 ulong crit_r1 = kvmppc_get_gpr(vcpu, 1); in kvmppc_critical_section() 371 static inline ulong kvmppc_get_gpr(struct kvm_vcpu *vcpu, int num) in kvmppc_get_gpr() function
|