[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <884fdf34-e675-2ebe-e37f-6aeb696a0922@redhat.com>
Date: Tue, 21 Feb 2023 09:18:23 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Tianrui Zhao <zhaotianrui@...ngson.cn>
Cc: Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
Mark Brown <broonie@...nel.org>,
Alex Deucher <alexander.deucher@....com>,
Oliver Upton <oliver.upton@...ux.dev>, maobibo@...ngson.cn
Subject: Re: [PATCH v2 27/29] LoongArch: KVM: Implement vcpu world switch
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
Powered by blists - more mailing lists