* [sean-jc:x86/no_bug_on_isr_count 1/1] arch/x86/kvm/lapic.c:770:65: error: extraneous ')' before ';'
@ 2026-06-18 0:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-18 0:58 UTC (permalink / raw)
To: Sean Christopherson; +Cc: llvm, oe-kbuild-all
tree: https://github.com/sean-jc/linux x86/no_bug_on_isr_count
head: a641b87ae60a2279dc0b8db0be73d98a0f1a1c1e
commit: a641b87ae60a2279dc0b8db0be73d98a0f1a1c1e [1/1] KVM: x86: Bug the VM, not the kernel, if the ISR count {under,over}flows
config: x86_64-buildonly-randconfig-001-20260618 (https://download.01.org/0day-ci/archive/20260618/202606180808.GLXxpgBp-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260618/202606180808.GLXxpgBp-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606180808.GLXxpgBp-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/kvm/lapic.c:770:65: error: extraneous ')' before ';'
770 | KVM_BUG_ON(apic->isr_count > MAX_APIC_VECTOR, apic->vcpu->kvm));
| ^
arch/x86/kvm/lapic.c:811:51: error: extraneous ')' before ';'
811 | KVM_BUG_ON(apic->isr_count < 0, apic->vcpu->kvm));
| ^
2 errors generated.
vim +770 arch/x86/kvm/lapic.c
754
755 static inline void apic_set_isr(int vec, struct kvm_lapic *apic)
756 {
757 if (__test_and_set_bit(APIC_VECTOR_TO_BIT_NUMBER(vec),
758 apic_vector_to_isr(vec, apic)))
759 return;
760
761 /*
762 * With APIC virtualization enabled, all caching is disabled
763 * because the processor can modify ISR under the hood. Instead
764 * just set SVI.
765 */
766 if (unlikely(apic->apicv_active))
767 kvm_x86_call(hwapic_isr_update)(apic->vcpu, vec);
768 else {
769 ++apic->isr_count;
> 770 KVM_BUG_ON(apic->isr_count > MAX_APIC_VECTOR, apic->vcpu->kvm));
771 /*
772 * ISR (in service register) bit is set when injecting an interrupt.
773 * The highest vector is injected. Thus the latest bit set matches
774 * the highest bit in ISR.
775 */
776 apic->highest_isr_cache = vec;
777 }
778 }
779
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-18 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 0:58 [sean-jc:x86/no_bug_on_isr_count 1/1] arch/x86/kvm/lapic.c:770:65: error: extraneous ')' before ';' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox