[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202602050229.BAdKUB3a-lkp@intel.com>
Date: Thu, 5 Feb 2026 03:03:32 +0800
From: kernel test robot <lkp@...el.com>
To: Zixing Liu <liushuyu@...c.io>, WANG Xuerui <kernel@...0n.name>,
Huacai Chen <chenhuacai@...nel.org>, Bibo Mao <maobibo@...ngson.cn>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Kexy Biscuit <kexybiscuit@...c.io>, Mingcong Bai <jeffbai@...c.io>,
Zixing Liu <liushuyu@...c.io>, Paolo Bonzini <pbonzini@...hat.com>,
Jonathan Corbet <corbet@....net>,
Tianrui Zhao <zhaotianrui@...ngson.cn>,
Paul Walmsley <pjw@...nel.org>, Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>,
kvm@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, loongarch@...ts.linux.dev,
linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v4] KVM: Add KVM_GET_REG_LIST ioctl for LoongArch
Hi Zixing,
kernel test robot noticed the following build errors:
[auto build test ERROR on kvm/queue]
[also build test ERROR on kvm/next linus/master v6.19-rc8]
[cannot apply to kvm/linux-next next-20260204]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Zixing-Liu/KVM-Add-KVM_GET_REG_LIST-ioctl-for-LoongArch/20260204-193844
base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link: https://lore.kernel.org/r/20260204113601.912413-1-liushuyu%40aosc.io
patch subject: [PATCH v4] KVM: Add KVM_GET_REG_LIST ioctl for LoongArch
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260205/202602050229.BAdKUB3a-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260205/202602050229.BAdKUB3a-lkp@intel.com/reproduce)
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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602050229.BAdKUB3a-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from arch/loongarch/kvm/vcpu.c:6:
In file included from arch/loongarch/include/asm/kvm_host.h:21:
In file included from arch/loongarch/include/asm/kvm_mmu.h:9:
>> include/linux/kvm_host.h:389:23: error: field has incomplete type 'struct kvm_vcpu_arch'
389 | struct kvm_vcpu_arch arch;
| ^
include/linux/kvm_host.h:389:9: note: forward declaration of 'struct kvm_vcpu_arch'
389 | struct kvm_vcpu_arch arch;
| ^
>> include/linux/kvm_host.h:390:23: error: field has incomplete type 'struct kvm_vcpu_stat'
390 | struct kvm_vcpu_stat stat;
| ^
include/linux/kvm_host.h:390:9: note: forward declaration of 'struct kvm_vcpu_stat'
390 | struct kvm_vcpu_stat stat;
| ^
>> include/linux/kvm_host.h:601:30: error: field has incomplete type 'struct kvm_arch_memory_slot'
601 | struct kvm_arch_memory_slot arch;
| ^
include/linux/kvm_host.h:601:9: note: forward declaration of 'struct kvm_arch_memory_slot'
601 | struct kvm_arch_memory_slot arch;
| ^
>> include/linux/kvm_host.h:831:21: error: field has incomplete type 'struct kvm_vm_stat'
831 | struct kvm_vm_stat stat;
| ^
include/linux/kvm_host.h:831:9: note: forward declaration of 'struct kvm_vm_stat'
831 | struct kvm_vm_stat stat;
| ^
>> include/linux/kvm_host.h:832:18: error: field has incomplete type 'struct kvm_arch'
832 | struct kvm_arch arch;
| ^
include/linux/kvm_host.h:832:9: note: forward declaration of 'struct kvm_arch'
832 | struct kvm_arch arch;
| ^
>> include/linux/kvm_host.h:1023:11: error: use of undeclared identifier 'KVM_MAX_VCPUS'
1023 | if (id < KVM_MAX_VCPUS)
| ^
In file included from arch/loongarch/kvm/vcpu.c:6:
>> arch/loongarch/include/asm/kvm_host.h:46:9: warning: 'KVM_DIRTY_LOG_MANUAL_CAPS' macro redefined [-Wmacro-redefined]
46 | #define KVM_DIRTY_LOG_MANUAL_CAPS \
| ^
include/linux/kvm_host.h:643:9: note: previous definition is here
643 | #define KVM_DIRTY_LOG_MANUAL_CAPS KVM_DIRTY_LOG_MANUAL_PROTECT_ENABLE
| ^
>> arch/loongarch/kvm/vcpu.c:48:10: error: assigning to 'struct kvm_context *' from incompatible type 'void'
48 | context = this_cpu_ptr(vcpu->kvm->arch.vmcs);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kvm/vcpu.c:63:10: error: assigning to 'struct kvm_context *' from incompatible type 'void'
63 | context = this_cpu_ptr(vcpu->kvm->arch.vmcs);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kvm/vcpu.c:1669:11: error: assigning to 'struct kvm_context *' from incompatible type 'void'
1669 | context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/loongarch/kvm/vcpu.c:1691:10: error: assigning to 'struct kvm_context *' from incompatible type 'void'
1691 | context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 10 errors generated.
vim +389 include/linux/kvm_host.h
af585b921e5d1e include/linux/kvm_host.h Gleb Natapov 2010-10-14 372
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 373 #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 374 /*
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 375 * Cpu relax intercept or pause loop exit optimization
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 376 * in_spin_loop: set when a vcpu does a pause loop exit
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 377 * or cpu relax intercepted.
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 378 * dy_eligible: indicates whether vcpu is eligible for directed yield.
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 379 */
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 380 struct {
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 381 bool in_spin_loop;
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 382 bool dy_eligible;
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 383 } spin_loop;
4c088493c8d07e include/linux/kvm_host.h Raghavendra K T 2012-07-18 384 #endif
a6816314af5749 include/linux/kvm_host.h David Matlack 2024-05-03 385 bool wants_to_run;
3a08a8f9f0936e include/linux/kvm_host.h Raghavendra K T 2013-03-04 386 bool preempted;
d73eb57b80b98a include/linux/kvm_host.h Wanpeng Li 2019-07-18 387 bool ready;
d1ae567fb8b559 include/linux/kvm_host.h Sean Christopherson 2024-05-21 388 bool scheduled_out;
d657a98e3c2053 drivers/kvm/kvm.h Zhang Xiantao 2007-12-14 @389 struct kvm_vcpu_arch arch;
ce55c049459cff include/linux/kvm_host.h Jing Zhang 2021-06-18 @390 struct kvm_vcpu_stat stat;
ce55c049459cff include/linux/kvm_host.h Jing Zhang 2021-06-18 391 char stats_id[KVM_STATS_NAME_SIZE];
fb04a1eddb1a65 include/linux/kvm_host.h Peter Xu 2020-09-30 392 struct kvm_dirty_ring dirty_ring;
fe22ed827c5b60 include/linux/kvm_host.h David Matlack 2021-08-04 393
fe22ed827c5b60 include/linux/kvm_host.h David Matlack 2021-08-04 394 /*
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 395 * The most recently used memslot by this vCPU and the slots generation
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 396 * for which it is valid.
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 397 * No wraparound protection is needed since generations won't overflow in
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 398 * thousands of years, even assuming 1M memslot operations per second.
fe22ed827c5b60 include/linux/kvm_host.h David Matlack 2021-08-04 399 */
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 400 struct kvm_memory_slot *last_used_slot;
a54d806688fe1e include/linux/kvm_host.h Maciej S. Szmigiero 2021-12-06 401 u64 last_used_slot_gen;
d657a98e3c2053 drivers/kvm/kvm.h Zhang Xiantao 2007-12-14 402 };
d657a98e3c2053 drivers/kvm/kvm.h Zhang Xiantao 2007-12-14 403
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists