tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d68dc6ee371ec5466be9b2d76bdca0b360940adc commit: dba6c8bad729e1971c31053550e9686127ce3844 [1636/1636] LoongArch: KVM: Add PV IPI support on host side config: loongarch-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241214/202412140300.AvxBVNVW-lkp@i...) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241214/202412140300.AvxBVNVW-lkp@i...)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot lkp@intel.com | Closes: https://lore.kernel.org/oe-kbuild-all/202412140300.AvxBVNVW-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/loongarch/kernel/paravirt.c: In function 'pv_send_ipi_single':
arch/loongarch/kernel/paravirt.c:85:24: error: 'KVM_HCALL_FUNC_PV_IPI' undeclared (first use in this function); did you mean 'KVM_HCALL_FUNC_IPI'?
85 | kvm_hypercall3(KVM_HCALL_FUNC_PV_IPI, 1, 0, min); | ^~~~~~~~~~~~~~~~~~~~~ | KVM_HCALL_FUNC_IPI arch/loongarch/kernel/paravirt.c:85:24: note: each undeclared identifier is reported only once for each function it appears in arch/loongarch/kernel/paravirt.c: In function 'pv_send_ipi_mask': arch/loongarch/kernel/paravirt.c:119:40: error: 'KVM_HCALL_FUNC_PV_IPI' undeclared (first use in this function); did you mean 'KVM_HCALL_FUNC_IPI'? 119 | kvm_hypercall3(KVM_HCALL_FUNC_PV_IPI, | ^~~~~~~~~~~~~~~~~~~~~ | KVM_HCALL_FUNC_IPI
vim +85 arch/loongarch/kernel/paravirt.c
f860ab821dd12f5 Bibo Mao 2024-03-22 73 462dd429f52a765 Bibo Mao 2024-03-01 74 #ifdef CONFIG_SMP 462dd429f52a765 Bibo Mao 2024-03-01 75 static void pv_send_ipi_single(int cpu, unsigned int action) 462dd429f52a765 Bibo Mao 2024-03-01 76 { 462dd429f52a765 Bibo Mao 2024-03-01 77 unsigned int min, old; 462dd429f52a765 Bibo Mao 2024-03-01 78 irq_cpustat_t *info = &per_cpu(irq_stat, cpu); 462dd429f52a765 Bibo Mao 2024-03-01 79 462dd429f52a765 Bibo Mao 2024-03-01 80 old = atomic_fetch_or(BIT(action), &info->message); 462dd429f52a765 Bibo Mao 2024-03-01 81 if (old) 462dd429f52a765 Bibo Mao 2024-03-01 82 return; 462dd429f52a765 Bibo Mao 2024-03-01 83 462dd429f52a765 Bibo Mao 2024-03-01 84 min = cpu_logical_map(cpu); 462dd429f52a765 Bibo Mao 2024-03-01 @85 kvm_hypercall3(KVM_HCALL_FUNC_PV_IPI, 1, 0, min); 462dd429f52a765 Bibo Mao 2024-03-01 86 } 462dd429f52a765 Bibo Mao 2024-03-01 87
:::::: The code at line 85 was first introduced by commit :::::: 462dd429f52a7659ea1c74f02f7134a43fccccc8 LoongArch: Add pv ipi support on guest kernel side
:::::: TO: Bibo Mao maobibo@loongson.cn :::::: CC: Xianglai Li lixianglai@loongson.cn