Lines Matching refs:run
63 vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_no_handler()
70 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_cop_unusable() local
84 er = kvm_mips_emulate_fpu_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_cop_unusable()
91 er = kvm_mips_emulate_inst(cause, opc, run, vcpu); in kvm_trap_emul_handle_cop_unusable()
100 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_cop_unusable()
105 run->exit_reason = KVM_EXIT_INTR; in kvm_trap_emul_handle_cop_unusable()
119 static int kvm_mips_bad_load(u32 cause, u32 *opc, struct kvm_run *run, in kvm_mips_bad_load() argument
128 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_mips_bad_load()
137 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_mips_bad_load()
142 er = kvm_mips_emulate_load(inst, cause, run, vcpu); in kvm_mips_bad_load()
145 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_mips_bad_load()
147 run->exit_reason = KVM_EXIT_MMIO; in kvm_mips_bad_load()
152 static int kvm_mips_bad_store(u32 cause, u32 *opc, struct kvm_run *run, in kvm_mips_bad_store() argument
164 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_mips_bad_store()
169 er = kvm_mips_emulate_store(inst, cause, run, vcpu); in kvm_mips_bad_store()
172 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_mips_bad_store()
174 run->exit_reason = KVM_EXIT_MMIO; in kvm_mips_bad_store()
179 static int kvm_mips_bad_access(u32 cause, u32 *opc, struct kvm_run *run, in kvm_mips_bad_access() argument
183 return kvm_mips_bad_store(cause, opc, run, vcpu); in kvm_mips_bad_access()
185 return kvm_mips_bad_load(cause, opc, run, vcpu); in kvm_mips_bad_access()
191 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_tlb_mod() local
215 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_tlb_mod()
220 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_tlb_mod()
229 kvm_mips_emulate_tlbmod(cause, opc, run, vcpu); in kvm_trap_emul_handle_tlb_mod()
236 return kvm_mips_bad_store(cause, opc, run, vcpu); in kvm_trap_emul_handle_tlb_mod()
241 return kvm_mips_bad_store(cause, opc, run, vcpu); in kvm_trap_emul_handle_tlb_mod()
245 return kvm_mips_bad_store(cause, opc, run, vcpu); in kvm_trap_emul_handle_tlb_mod()
251 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_tlb_miss() local
261 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_tlb_miss()
279 er = kvm_mips_handle_tlbmiss(cause, opc, run, vcpu, store); in kvm_trap_emul_handle_tlb_miss()
283 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_tlb_miss()
292 ret = kvm_mips_bad_access(cause, opc, run, vcpu, store); in kvm_trap_emul_handle_tlb_miss()
299 ret = kvm_mips_bad_access(cause, opc, run, vcpu, store); in kvm_trap_emul_handle_tlb_miss()
305 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_tlb_miss()
323 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_addr_err_st() local
331 ret = kvm_mips_bad_store(cause, opc, run, vcpu); in kvm_trap_emul_handle_addr_err_st()
335 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_addr_err_st()
343 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_addr_err_ld() local
350 ret = kvm_mips_bad_load(cause, opc, run, vcpu); in kvm_trap_emul_handle_addr_err_ld()
354 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_addr_err_ld()
362 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_syscall() local
368 er = kvm_mips_emulate_syscall(cause, opc, run, vcpu); in kvm_trap_emul_handle_syscall()
372 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_syscall()
380 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_res_inst() local
386 er = kvm_mips_handle_ri(cause, opc, run, vcpu); in kvm_trap_emul_handle_res_inst()
390 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_res_inst()
398 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_break() local
404 er = kvm_mips_emulate_bp_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_break()
408 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_break()
416 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_trap() local
422 er = kvm_mips_emulate_trap_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_trap()
426 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_trap()
434 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_msa_fpe() local
440 er = kvm_mips_emulate_msafpe_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_msa_fpe()
444 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_msa_fpe()
452 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_fpe() local
458 er = kvm_mips_emulate_fpe_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_fpe()
462 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_fpe()
477 struct kvm_run *run = vcpu->run; in kvm_trap_emul_handle_msa_disabled() local
489 er = kvm_mips_emulate_ri_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_msa_disabled()
492 er = kvm_mips_emulate_msadis_exc(cause, opc, run, vcpu); in kvm_trap_emul_handle_msa_disabled()
505 run->exit_reason = KVM_EXIT_INTERNAL_ERROR; in kvm_trap_emul_handle_msa_disabled()
1182 static void kvm_trap_emul_vcpu_reenter(struct kvm_run *run, in kvm_trap_emul_vcpu_reenter() argument
1226 static int kvm_trap_emul_vcpu_run(struct kvm_run *run, struct kvm_vcpu *vcpu) in kvm_trap_emul_vcpu_run() argument
1235 kvm_trap_emul_vcpu_reenter(run, vcpu); in kvm_trap_emul_vcpu_run()
1253 r = vcpu->arch.vcpu_run(run, vcpu); in kvm_trap_emul_vcpu_run()