mirror-linux/arch/loongarch
Bibo Mao 955853cf83 LoongArch: KVM: Disable updating of "num_cpu" and "feature"
Property "num_cpu" and "feature" are read-only once eiointc is created,
which are set with KVM_DEV_LOONGARCH_EXTIOI_GRP_CTRL attr group before
device creation.

Attr group KVM_DEV_LOONGARCH_EXTIOI_GRP_SW_STATUS is to update register
and software state for migration and reset usage, property "num_cpu" and
"feature" can not be update again if it is created already.

Here discard write operation with property "num_cpu" and "feature" in
attr group KVM_DEV_LOONGARCH_EXTIOI_GRP_CTRL.

Cc: stable@vger.kernel.org
Fixes: 1ad7efa552 ("LoongArch: KVM: Add EIOINTC user mode read and write functions")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2025-06-27 18:27:44 +08:00
..
boot LoongArch: dts: Add PWM support to Loongson-2K2000 2025-06-06 18:51:16 +08:00
configs crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTS 2025-05-12 13:33:14 +08:00
crypto loongarch/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
include LoongArch: Handle KCOV __init vs inline mismatches 2025-06-26 20:07:18 +08:00
kernel LoongArch: Handle KCOV __init vs inline mismatches 2025-06-26 20:07:18 +08:00
kvm LoongArch: KVM: Disable updating of "num_cpu" and "feature" 2025-06-27 18:27:44 +08:00
lib LoongArch: Fix build warnings about export.h 2025-06-26 20:07:18 +08:00
mm LoongArch: Handle KCOV __init vs inline mismatches 2025-06-26 20:07:18 +08:00
net LoongArch: BPF: Don't override subprog's return value 2025-03-30 16:31:09 +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 changes for v6.15 2025-04-02 12:15:01 -07:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch: Introduce the numa_memblks conversion 2025-05-30 21:45:43 +08:00
Kconfig.debug LoongArch: Only allow OBJTOOL & ORC unwinder if toolchain supports -mthin-add-sub 2024-06-21 10:18:40 +08:00
Makefile LoongArch: Add some annotations in archhelp 2025-05-30 21:45:42 +08:00