On 03/07/2024 03:12, Yan Zhao wrote: > Add a new user option to memslot_modification_stress_test to allow testing > with slot zap quirk KVM_X86_QUIRK_SLOT_ZAP_ALL disabled. > > Signed-off-by: Yan Zhao <yan.y.zhao@xxxxxxxxx> > --- > .../kvm/memslot_modification_stress_test.c | 19 +++++++++++++++++-- Hi Yan, When building kselftest-kvm config against next-20240924 kernel with Arm64 an error "'KVM_X86_QUIRK_SLOT_ZAP_ALL' undeclared" is observed. A bisect identified 218f6415004a881d116e254eeb837358aced55ab as the first bad commit. Bisected it on the tag "next-20240923" at repo "https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git". Reverting the change seems to fix it. This works fine on Linux version 6.11 Failure log ------------ https://storage.kernelci.org/next/master/next-20240924/arm64/defconfig+kselftest/gcc-12/logs/kselftest.log In file included from include/kvm_util.h:8, from include/memstress.h:13, from memslot_modification_stress_test.c:21: memslot_modification_stress_test.c: In function ‘main’: memslot_modification_stress_test.c:176:38: error: ‘KVM_X86_QUIRK_SLOT_ZAP_ALL’ undeclared (first use in this function) 176 | KVM_X86_QUIRK_SLOT_ZAP_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/test_util.h:41:15: note: in definition of macro ‘__TEST_REQUIRE’ 41 | if (!(f)) \ | ^ memslot_modification_stress_test.c:175:25: note: in expansion of macro ‘TEST_REQUIRE’ 175 | TEST_REQUIRE(kvm_check_cap(KVM_CAP_DISABLE_QUIRKS2) & | ^~~~~~~~~~~~ memslot_modification_stress_test.c:176:38: note: each undeclared identifier is reported only once for each function it appears in 176 | KVM_X86_QUIRK_SLOT_ZAP_ALL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/test_util.h:41:15: note: in definition of macro ‘__TEST_REQUIRE’ 41 | if (!(f)) \ | ^ memslot_modification_stress_test.c:175:25: note: in expansion of macro ‘TEST_REQUIRE’ 175 | TEST_REQUIRE(kvm_check_cap(KVM_CAP_DISABLE_QUIRKS2) & | ^~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option ‘-Wno-gnu-variable-sized-type-not-at-end’ may have been intended to silence earlier diagnostics make[4]: *** [Makefile:300: /tmp/kci/linux/build/kselftest/kvm/memslot_modification_stress_test.o] Error 1 make[4]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/kvm' Bisect log: ---------- git bisect start # good: [98f7e32f20d28ec452afb208f9cffc08448a2652] Linux 6.11 git bisect good 98f7e32f20d28ec452afb208f9cffc08448a2652 # bad: [ef545bc03a65438cabe87beb1b9a15b0ffcb6ace] Add linux-next specific files for 20240923 git bisect bad ef545bc03a65438cabe87beb1b9a15b0ffcb6ace # good: [176000734ee2978121fde22a954eb1eabb204329] Merge tag 'ata-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux git bisect good 176000734ee2978121fde22a954eb1eabb204329 # good: [f55bf3fb11d7fe32a37b8d625744d22891c02e5e] Merge branch 'at91-next' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git git bisect good f55bf3fb11d7fe32a37b8d625744d22891c02e5e # good: [1340ff0aa9e6dcb9c8ac5f86472eb78ba524b14a] Merge branch 'for-next' of git://git.kernel.dk/linux-block.git git bisect good 1340ff0aa9e6dcb9c8ac5f86472eb78ba524b14a # bad: [51d98f15885e036a06fef35c396c987e80c47a27] Merge branch 'char-misc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git git bisect bad 51d98f15885e036a06fef35c396c987e80c47a27 # bad: [4f216a17ef0dc3bf99c28902abbc6c70fb7798a0] Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git git bisect bad 4f216a17ef0dc3bf99c28902abbc6c70fb7798a0 # bad: [b11ba58b0ef5c932303dac5ce96e17d96c127870] Merge branch 'next' of git://git.kernel.org/pub/scm/virt/kvm/kvm.git git bisect bad b11ba58b0ef5c932303dac5ce96e17d96c127870 # good: [b7ba28772e5709196e3efffb9341c7fd698b2497] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git git bisect good b7ba28772e5709196e3efffb9341c7fd698b2497 # bad: [c345344e8317176944be33f46e18812c0343dc63] Merge tag 'kvm-x86-selftests-6.12' of https://github.com/kvm-x86/linux into HEAD git bisect bad c345344e8317176944be33f46e18812c0343dc63 # bad: [7056c4e2a13a61f4e8a9e8ce27cd499f27e0e63b] Merge tag 'kvm-x86-generic-6.12' of https://github.com/kvm-x86/linux into HEAD git bisect bad 7056c4e2a13a61f4e8a9e8ce27cd499f27e0e63b # bad: [590b09b1d88e18ae57f89930a6f7b89795d2e9f3] KVM: x86: Register "emergency disable" callbacks when virt is enabled git bisect bad 590b09b1d88e18ae57f89930a6f7b89795d2e9f3 # bad: [70c0194337d38dd29533e63e3cb07620f8c5eae1] KVM: Rename symbols related to enabling virtualization hardware git bisect bad 70c0194337d38dd29533e63e3cb07620f8c5eae1 # bad: [218f6415004a881d116e254eeb837358aced55ab] KVM: selftests: Allow slot modification stress test with quirk disabled git bisect bad 218f6415004a881d116e254eeb837358aced55ab # good: [b4ed2c67d275b85b2ab07d54f88bebd5998d61d8] KVM: selftests: Test slot move/delete with slot zap quirk enabled/disabled git bisect good b4ed2c67d275b85b2ab07d54f88bebd5998d61d8 # first bad commit: [218f6415004a881d116e254eeb837358aced55ab] KVM: selftests: Allow slot modification stress test with quirk disabled Thanks, Aishwarya