Lines Matching refs:guest_context
70 old_hstatus = csr_swap(CSR_HSTATUS, vcpu->arch.guest_context.hstatus); in kvm_riscv_vcpu_unpriv_read()
142 if (vcpu->arch.guest_context.sstatus & SR_SPP) in kvm_riscv_vcpu_trap_redirect()
162 vcpu->arch.guest_context.sepc = csr_read(CSR_VSTVEC); in kvm_riscv_vcpu_trap_redirect()
165 vcpu->arch.guest_context.sstatus |= SR_SPP; in kvm_riscv_vcpu_trap_redirect()
190 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) { in kvm_riscv_vcpu_exit()
196 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit()
202 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit()
206 if (vcpu->arch.guest_context.hstatus & HSTATUS_SPV) in kvm_riscv_vcpu_exit()
221 vcpu->arch.guest_context.sepc, in kvm_riscv_vcpu_exit()
222 vcpu->arch.guest_context.sstatus, in kvm_riscv_vcpu_exit()
223 vcpu->arch.guest_context.hstatus); in kvm_riscv_vcpu_exit()