[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260128030326.3377462-1-maobibo@loongson.cn>
Date: Wed, 28 Jan 2026 11:03:22 +0800
From: Bibo Mao <maobibo@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Tianrui Zhao <zhaotianrui@...ngson.cn>
Cc: loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Subject: [PATCH 0/4] LoongArch: KVM: Code cleanup about feature detect
Here is code cleanup about feature detection, there is feature
initialization about host machine, feature checking about VM and host.
Also add register LOONGARCH_CSR_IPR during vCPU context switch, though
it is not used by msgint driver now, it is defined by HW and may be used
in future.
Bibo Mao (4):
LoongArch: KVM: Move feature detection in function
kvm_vm_init_features
LoongArch: KVM: Add msgint registers in function kvm_init_gcsr_flag
LoongArch: KVM: Check VM msgint feature during interrupt handling
LoongArch: KVM: Add register LOONGARCH_CSR_IPR during vCPU context
switch
arch/loongarch/include/asm/kvm_host.h | 5 ++++
arch/loongarch/include/asm/loongarch.h | 2 +-
arch/loongarch/kvm/interrupt.c | 4 +--
arch/loongarch/kvm/main.c | 8 ++++++
arch/loongarch/kvm/vcpu.c | 6 +++--
arch/loongarch/kvm/vm.c | 36 +++++++++++---------------
6 files changed, 35 insertions(+), 26 deletions(-)
base-commit: 1f97d9dcf53649c41c33227b345a36902cbb08ad
--
2.39.3
Powered by blists - more mailing lists