linux/arch/loongarch
Bibo Mao 237e74bfa2 LoongArch: KVM: Fix max supported vCPUs set with EIOINTC
VM fails to boot with 256 vCPUs, the detailed command is

  qemu-system-loongarch64 -smp 256

and there is an error reported as follows:

  KVM_LOONGARCH_EXTIOI_INIT_NUM_CPU failed: Invalid argument

There is typo issue in function kvm_eiointc_ctrl_access() when set
max supported vCPUs.

Cc: stable@vger.kernel.org
Fixes: 47256c4c8b ("LoongArch: KVM: Avoid copy_*_user() with lock hold in kvm_eiointc_ctrl_access()")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-11-10 08:37:07 +08:00
..
boot LoongArch: dts: Add eMMC/SDIO controller support to Loongson-2K2000 2025-08-05 19:00:22 +08:00
configs LoongArch changes for v6.18 2025-10-06 12:18:56 -07:00
crypto
include LoongArch: Use correct accessor to read FWPC/MWPC 2025-11-10 08:37:06 +08:00
kernel LoongArch: kexec: Print out debugging message if required 2025-11-10 08:37:07 +08:00
kvm LoongArch: KVM: Fix max supported vCPUs set with EIOINTC 2025-11-10 08:37:07 +08:00
lib lib/crc: loongarch: Migrate optimized CRC code into lib/crc/ 2025-06-30 09:31:57 -07:00
mm LoongArch: Consolidate max_pfn & max_low_pfn calculation 2025-11-10 08:37:06 +08:00
net LoongArch: BPF: Sign-extend struct ops return values properly 2025-10-02 22:39:53 +08:00
pci LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
power LoongArch: Save and restore CSR.CNTC for hibernation 2025-05-14 22:17:52 +08:00
vdso LoongArch: vDSO: Remove -nostdlib complier flag 2025-08-05 19:00:22 +08:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch changes for v6.18 2025-10-06 12:18:56 -07:00
Kconfig.debug
Makefile rust: kbuild: support -Cjump-tables=n for Rust 1.93.0 2025-11-04 19:11:39 +01:00