From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: arch/arm64/kvm/../../../virt/kvm/kvm_main.c:327 kvm_make_all_cpus_request() warn: iterator 'i' not incremented
Date: Thu, 12 Dec 2024 21:34:14 +0800 [thread overview]
Message-ID: <202412122149.3N9zBbXb-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Venkatesh Srinivas <venkateshs@chromium.org>
CC: Sean Christopherson <seanjc@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 231825b2e1ff6ba799c5eaf396d3ab2354e37c6b
commit: 82e9c84d8712e8d29278a37aaa9aa767d50a16da KVM: Remove kvm_make_all_cpus_request_except()
date: 7 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 7 months ago
config: arm64-randconfig-r073-20241207 (https://download.01.org/0day-ci/archive/20241212/202412122149.3N9zBbXb-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202412122149.3N9zBbXb-lkp@intel.com/
New smatch warnings:
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:327 kvm_make_all_cpus_request() warn: iterator 'i' not incremented
Old smatch warnings:
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:518 kvm_destroy_vcpus() warn: iterator 'i' not incremented
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1730 kvm_commit_memory_region() error: we previously assumed 'old' could be null (see line 1723)
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1732 kvm_commit_memory_region() error: we previously assumed 'new' could be null (see line 1724)
include/linux/kvm_host.h:979 kvm_get_vcpu_by_id() warn: iterator 'i' not incremented
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:4947 kvm_vm_ioctl_reset_dirty_pages() warn: iterator 'i' not incremented
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:6076 kvm_get_stat_per_vcpu() warn: iterator 'i' not incremented
arch/arm64/kvm/../../../virt/kvm/kvm_main.c:6087 kvm_clear_stat_per_vcpu() warn: iterator 'i' not incremented
vim +/i +327 arch/arm64/kvm/../../../virt/kvm/kvm_main.c
7053df4edb3ae3a virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 313
82e9c84d8712e8d virt/kvm/kvm_main.c Venkatesh Srinivas 2024-04-04 314 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req)
7053df4edb3ae3a virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 315 {
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 316 struct kvm_vcpu *vcpu;
baff59ccdc657d2 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 317 struct cpumask *cpus;
46808a4cb89708c virt/kvm/kvm_main.c Marc Zyngier 2021-11-16 318 unsigned long i;
7053df4edb3ae3a virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 319 bool called;
46808a4cb89708c virt/kvm/kvm_main.c Marc Zyngier 2021-11-16 320 int me;
7053df4edb3ae3a virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 321
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 322 me = get_cpu();
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 323
baff59ccdc657d2 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 324 cpus = this_cpu_cpumask_var_ptr(cpu_kick_mask);
baff59ccdc657d2 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 325 cpumask_clear(cpus);
baff59ccdc657d2 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 326
82e9c84d8712e8d virt/kvm/kvm_main.c Venkatesh Srinivas 2024-04-04 @327 kvm_for_each_vcpu(i, vcpu, kvm)
b56bd8e03cf4d59 virt/kvm/kvm_main.c Jinrong Liang 2022-01-25 328 kvm_make_vcpu_request(vcpu, req, cpus, me);
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 329
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 330 called = kvm_kick_many_cpus(cpus, !!(req & KVM_REQUEST_WAIT));
ae0946cd3601752 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 331 put_cpu();
7053df4edb3ae3a virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 332
498468961ed6f62 virt/kvm/kvm_main.c Rusty Russell 2008-12-08 333 return called;
d9e368d61263055 drivers/kvm/kvm_main.c Avi Kivity 2007-06-07 334 }
a2486020a82eefa virt/kvm/kvm_main.c Marcelo Tosatti 2021-05-26 335 EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
54163a346d4a0a1 virt/kvm/kvm_main.c Suravee Suthikulpanit 2020-05-06 336
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-12-12 13:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 13:34 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-19 11:48 arch/arm64/kvm/../../../virt/kvm/kvm_main.c:327 kvm_make_all_cpus_request() warn: iterator 'i' not incremented kernel test robot
2024-10-18 12:11 kernel test robot
2024-10-16 12:56 kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412122149.3N9zBbXb-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.