+92
−1
+11
−0
Loading
LoongArch inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9BTWW ------------------------------------------ Physical cpuid is used for interrupt routing for irqchips such as ipi/msi/extioi interrupt controller. And physical cpuid is stored at CSR register LOONGARCH_CSR_CPUID, it can not be changed once vcpu is created and physical cpuid of two vcpus cannot be the same. Different irqchips have different size declaration about physical cpuid, max cpuid value for CSR LOONGARCH_CSR_CPUID on 3A5000 is 512, max cpuid supported by IPI hardware is 1024, 256 for extioi irqchip, and 65536 for MSI irqchip. The smallest value from all interrupt controllers is selected now, and the max cpuid size is defines as 256 by KVM which comes from extioi irqchip. Signed-off-by:Bibo Mao <maobibo@loongson.cn> Signed-off-by:
Xianglai Li <lixianglai@loongson.cn>