On 2/20/23 07:57, Tianrui Zhao wrote:
+ or a0, s0, zero + or a1, s1, zero + ld.d t8, a2, KVM_ARCH_HANDLE_EXIT + jirl ra,t8, 0 + ori t0, zero, CSR_CRMD_IE + csrxchg zero, t0, LOONGARCH_CSR_CRMD
_kvm_handle_exit returns with the interrupts disabled.Can you please add a comment to explain why CRMD.IE needs to be cleared here, or remove these two instructions if unnecessary?
Paolo
+ or a2, s1, zero + addi.d a2, a2, KVM_VCPU_ARCH + + andi t0, a0, RESUME_HOST + bnez t0, ret_to_host