Lines Matching refs:run

79 void kvm_riscv_vcpu_sbi_forward(struct kvm_vcpu *vcpu, struct kvm_run *run)  in kvm_riscv_vcpu_sbi_forward()  argument
85 run->exit_reason = KVM_EXIT_RISCV_SBI; in kvm_riscv_vcpu_sbi_forward()
86 run->riscv_sbi.extension_id = cp->a7; in kvm_riscv_vcpu_sbi_forward()
87 run->riscv_sbi.function_id = cp->a6; in kvm_riscv_vcpu_sbi_forward()
88 run->riscv_sbi.args[0] = cp->a0; in kvm_riscv_vcpu_sbi_forward()
89 run->riscv_sbi.args[1] = cp->a1; in kvm_riscv_vcpu_sbi_forward()
90 run->riscv_sbi.args[2] = cp->a2; in kvm_riscv_vcpu_sbi_forward()
91 run->riscv_sbi.args[3] = cp->a3; in kvm_riscv_vcpu_sbi_forward()
92 run->riscv_sbi.args[4] = cp->a4; in kvm_riscv_vcpu_sbi_forward()
93 run->riscv_sbi.args[5] = cp->a5; in kvm_riscv_vcpu_sbi_forward()
94 run->riscv_sbi.ret[0] = cp->a0; in kvm_riscv_vcpu_sbi_forward()
95 run->riscv_sbi.ret[1] = cp->a1; in kvm_riscv_vcpu_sbi_forward()
99 struct kvm_run *run, in kvm_riscv_vcpu_sbi_system_reset() argument
109 memset(&run->system_event, 0, sizeof(run->system_event)); in kvm_riscv_vcpu_sbi_system_reset()
110 run->system_event.type = type; in kvm_riscv_vcpu_sbi_system_reset()
111 run->system_event.ndata = 1; in kvm_riscv_vcpu_sbi_system_reset()
112 run->system_event.data[0] = reason; in kvm_riscv_vcpu_sbi_system_reset()
113 run->exit_reason = KVM_EXIT_SYSTEM_EVENT; in kvm_riscv_vcpu_sbi_system_reset()
116 int kvm_riscv_vcpu_sbi_return(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_sbi_return() argument
126 cp->a0 = run->riscv_sbi.ret[0]; in kvm_riscv_vcpu_sbi_return()
127 cp->a1 = run->riscv_sbi.ret[1]; in kvm_riscv_vcpu_sbi_return()
358 int kvm_riscv_vcpu_sbi_ecall(struct kvm_vcpu *vcpu, struct kvm_run *run) in kvm_riscv_vcpu_sbi_ecall() argument
379 ret = sbi_ext->handler(vcpu, run, &sbi_ret); in kvm_riscv_vcpu_sbi_ecall()