lkml.org 
[lkml]   [2023]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 27/29] LoongArch: KVM: Implement vcpu world switch
From
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

\
 
 \ /
  Last update: 2023-03-27 00:29    [W:0.230 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site