Lines Matching refs:run
709 vcpu->run->exit_reason = KVM_EXIT_WATCHDOG; in kvmppc_core_check_requests()
714 vcpu->run->epr.epr = 0; in kvmppc_core_check_requests()
716 vcpu->run->exit_reason = KVM_EXIT_EPR; in kvmppc_core_check_requests()
793 static int emulation_exit(struct kvm_run *run, struct kvm_vcpu *vcpu) in emulation_exit() argument
797 er = kvmppc_emulate_instruction(run, vcpu); in emulation_exit()
814 run->hw.hardware_exit_reason = ~0ULL << 32; in emulation_exit()
815 run->hw.hardware_exit_reason |= vcpu->arch.last_inst; in emulation_exit()
827 static int kvmppc_handle_debug(struct kvm_run *run, struct kvm_vcpu *vcpu) in kvmppc_handle_debug() argument
859 run->debug.arch.status = 0; in kvmppc_handle_debug()
860 run->debug.arch.address = vcpu->arch.pc; in kvmppc_handle_debug()
863 run->debug.arch.status |= KVMPPC_DEBUG_BREAKPOINT; in kvmppc_handle_debug()
866 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_WRITE; in kvmppc_handle_debug()
868 run->debug.arch.status |= KVMPPC_DEBUG_WATCH_READ; in kvmppc_handle_debug()
870 run->debug.arch.address = dbg_reg->dac1; in kvmppc_handle_debug()
872 run->debug.arch.address = dbg_reg->dac2; in kvmppc_handle_debug()
946 static int kvmppc_resume_inst_load(struct kvm_run *run, struct kvm_vcpu *vcpu, in kvmppc_resume_inst_load() argument
958 run->hw.hardware_exit_reason = ~0ULL << 32; in kvmppc_resume_inst_load()
959 run->hw.hardware_exit_reason |= last_inst; in kvmppc_resume_inst_load()
973 int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu, in kvmppc_handle_exit() argument
1012 run->exit_reason = KVM_EXIT_UNKNOWN; in kvmppc_handle_exit()
1013 run->ready_for_interrupt_injection = 1; in kvmppc_handle_exit()
1016 r = kvmppc_resume_inst_load(run, vcpu, emulated, last_inst); in kvmppc_handle_exit()
1025 run->hw.hardware_exit_reason = ~1ULL << 32; in kvmppc_handle_exit()
1026 run->hw.hardware_exit_reason |= mfspr(SPRN_MCSR); in kvmppc_handle_exit()
1076 r = emulation_exit(run, vcpu); in kvmppc_handle_exit()
1086 r = kvmppc_handle_debug(run, vcpu); in kvmppc_handle_exit()
1087 run->exit_reason = KVM_EXIT_DEBUG; in kvmppc_handle_exit()
1107 r = emulation_exit(run, vcpu); in kvmppc_handle_exit()
1154 run->hw.hardware_exit_reason = exit_nr; in kvmppc_handle_exit()
1274 r = kvmppc_emulate_mmio(run, vcpu); in kvmppc_handle_exit()
1325 r = kvmppc_handle_debug(run, vcpu); in kvmppc_handle_exit()
1327 run->exit_reason = KVM_EXIT_DEBUG; in kvmppc_handle_exit()