FYI, we noticed the following commit (built with gcc-7):
commit: 7d6e56f15f94197dc0a663f64c4fb1da9bd9830f ("[PATCH] KVM: selftests: Fix
parameter order error in kvm_create_max_vcpus")
url:
https://github.com/0day-ci/linux/commits/Tianjia-Zhang/KVM-selftests-Fix-...
base:
https://git.kernel.org/cgit/virt/kvm/kvm.git linux-next
in testcase: kernel-selftests
with following parameters:
group: kselftests-01
ucode: 0xd6
test-description: The kernel contains a set of "self tests" under the
tools/testing/selftests/ directory. These are intended to be small unit tests to exercise
individual code paths in the kernel.
test-url:
https://www.kernel.org/doc/Documentation/kselftest.txt
on test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with 16G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen(a)intel.com>
# selftests: kvm: kvm_create_max_vcpus
# ==== Test Assertion Failure ====
# lib/kvm_util.c:855: vcpu->fd >= 0
# pid=28849 tid=28849 - Invalid argument
# 1 0x0000000000401b41: vm_vcpu_add at kvm_util.c:854
# 2 0x0000000000401244: test_vcpu_creation at kvm_create_max_vcpus.c:34
(discriminator 3)
# 3 0x00000000004010a3: main at kvm_create_max_vcpus.c:62
# 4 0x00007f747b016e0a: ?? ??:0
# 5 0x0000000000401119: _start at ??:?
# KVM_CREATE_VCPU failed, rc: -1 errno: 22
# KVM_CAP_MAX_VCPU_ID: 1023
# KVM_CAP_MAX_VCPUS: 288
# Testing creating 288 vCPUs, with IDs 0...287.
# Testing creating 735 vCPUs, with IDs 288...1022.
not ok 20 selftests: kvm: kvm_create_max_vcpus # exit=254
To reproduce:
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
Thanks,
Rong Chen