]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: KVM: Move feature detection in kvm_vm_init_features()
authorBibo Mao <maobibo@loongson.cn>
Fri, 6 Feb 2026 01:27:46 +0000 (09:27 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 6 Feb 2026 01:27:46 +0000 (09:27 +0800)
commit82db90bf461b0cfbb9457a2e721a781c14512e37
tree15b97013bcebe49bc9c4d7f3996bc29066f7c57c
parentde0c51370b7dca71825c5e3e4099ebc353a0df1a
LoongArch: KVM: Move feature detection in kvm_vm_init_features()

VM feature detection is sparsed in function kvm_vm_init_features() and
kvm_vm_feature_has_attr(). Here move all the features detection in
function kvm_vm_init_features(), and there is only feature checking in
function kvm_vm_feature_has_attr().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/vm.c