Lines Matching refs:run

710 		vcpu->run->exit_reason = KVM_EXIT_WATCHDOG;  in kvmppc_core_check_requests()
715 vcpu->run->epr.epr = 0; in kvmppc_core_check_requests()
717 vcpu->run->exit_reason = KVM_EXIT_EPR; in kvmppc_core_check_requests()
794 static int emulation_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) in emulation_exit() argument
798 er = kvmppc_emulate_instruction(run, vcpu); in emulation_exit()
815 run->hw.hardware_exit_reason = ~0ULL << 32; in emulation_exit()
816 run->hw.hardware_exit_reason |= vcpu->arch.last_inst; in emulation_exit()
828 static int kvmppc_handle_debug(struct kvm_run *run, struct kvm_vcpu *vcpu) in kvmppc_handle_debug() argument
860 run->debug.arch.status = 0; in kvmppc_handle_debug()
861 run->debug.arch.address = vcpu->arch.pc; in kvmppc_handle_debug()
864 run->debug.arch.status |= KVMPPC_DEBUG_BREAKPOINT; in kvmppc_handle_debug()
867 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_WRITE; in kvmppc_handle_debug()
869 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_READ; in kvmppc_handle_debug()
871 run->debug.arch.address = dbg_reg->dac1; in kvmppc_handle_debug()
873 run->debug.arch.address = dbg_reg->dac2; in kvmppc_handle_debug()
948 static int kvmppc_resume_inst_load(struct kvm_run *run, struct kvm_vcpu *vcpu, in kvmppc_resume_inst_load() argument
960 run->hw.hardware_exit_reason = ~0ULL << 32; in kvmppc_resume_inst_load()
961 run->hw.hardware_exit_reason |= last_inst; in kvmppc_resume_inst_load()
975 int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, in kvmppc_handle_exit() argument
1014 run->exit_reason = KVM_EXIT_UNKNOWN; in kvmppc_handle_exit()
1015 run->ready_for_interrupt_injection = 1; in kvmppc_handle_exit()
1018 r = kvmppc_resume_inst_load(run, vcpu, emulated, last_inst); in kvmppc_handle_exit()
1027 run->hw.hardware_exit_reason = ~1ULL << 32; in kvmppc_handle_exit()
1028 run->hw.hardware_exit_reason |= mfspr(SPRN_MCSR); in kvmppc_handle_exit()
1078 r = emulation_exit(run, vcpu); in kvmppc_handle_exit()
1088 r = kvmppc_handle_debug(run, vcpu); in kvmppc_handle_exit()
1089 run->exit_reason = KVM_EXIT_DEBUG; in kvmppc_handle_exit()
1109 r = emulation_exit(run, vcpu); in kvmppc_handle_exit()
1156 run->hw.hardware_exit_reason = exit_nr; in kvmppc_handle_exit()
1276 r = kvmppc_emulate_mmio(run, vcpu); in kvmppc_handle_exit()
1327 r = kvmppc_handle_debug(run, vcpu); in kvmppc_handle_exit()
1329 run->exit_reason = KVM_EXIT_DEBUG; in kvmppc_handle_exit()