]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: KVM: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS
authorQiang Ma <maqianga@uniontech.com>
Mon, 4 May 2026 01:00:37 +0000 (09:00 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 4 May 2026 01:00:37 +0000 (09:00 +0800)
commitb3e31a6650d4cab63f0814c37c0b360372c6ee9e
tree481f82e865fee5e6210c1303ceaa2efce01f568c
parentb323a441da602dfdfc24f30d3190cac786ffebf2
LoongArch: KVM: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS

It doesn't make sense to return the recommended maximum number of vCPUs
which exceeds the maximum possible number of vCPUs.

Other architectures have already done this, such as commit 57a2e13ebdda
("KVM: MIPS: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS")

Cc: stable@vger.kernel.org
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/vm.c