Hello, kernel test robot noticed "kernel-selftests.kvm.xapic_state_test.fail" on: commit: 6ccade077c151e719397b0a86f48554db9aa1c24 ("[PATCH 2/2] KVM: x86: Clear X2APIC_ICR_UNUSED_12 after APIC-write VM-exit") url: https://github.com/intel-lab-lkp/linux/commits/Tao-Su/x86-apic-Introduce-X2APIC_ICR_UNUSED_12-for-x2APIC-mode/20230904-093801 patch link: https://lore.kernel.org/all/20230904013555.725413-3-tao1.su@xxxxxxxxxxxxxxx/ patch subject: [PATCH 2/2] KVM: x86: Clear X2APIC_ICR_UNUSED_12 after APIC-write VM-exit in testcase: kernel-selftests version: kernel-selftests-x86_64-60acb023-1_20230329 with following parameters: group: kvm compiler: gcc-12 test machine: 224 threads 2 sockets Intel(R) Xeon(R) Platinum 8480+ (Sapphire Rapids) with 256G memory (please refer to attached dmesg/kmsg for entire log/backtrace) besides, we also noticed kvm.smm_test.fail which keeps pass on parent. 83c02e23e21fec27 6ccade077c151e719397b0a86f4 ---------------- --------------------------- fail:runs %reproduction fail:runs | | | :6 100% 6:6 kernel-selftests.kvm.smm_test.fail :6 100% 6:6 kernel-selftests.kvm.xapic_state_test.fail 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 <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202309242109.43637c74-oliver.sang@xxxxxxxxx # timeout set to 120 # selftests: kvm: smm_test # ==== Test Assertion Failure ==== # x86_64/smm_test.c:179: stage_reported == stage || stage_reported == SMRAM_STAGE # pid=6354 tid=6354 errno=4 - Interrupted system call # 1 0x00000000004026fc: main at smm_test.c:179 # 2 0x00007f08310cb189: ?? ??:0 # 3 0x00007f08310cb244: ?? ??:0 # 4 0x0000000000402810: _start at ??:? # Unexpected stage: #3, got 4 not ok 25 selftests: kvm: smm_test # exit=254 ... # timeout set to 120 # selftests: kvm: xapic_state_test # ==== Test Assertion Failure ==== # x86_64/xapic_state_test.c:78: __a == __b # pid=7081 tid=7081 errno=4 - Interrupted system call # 1 0x0000000000402a1f: ____test_icr at xapic_state_test.c:78 # 2 0x0000000000402c51: __test_icr at xapic_state_test.c:95 (discriminator 3) # 3 (inlined by) test_icr at xapic_state_test.c:106 (discriminator 3) # 4 0x0000000000402433: main at xapic_state_test.c:197 # 5 0x00007f8a0c660189: ?? ??:0 # 6 0x00007f8a0c660244: ?? ??:0 # 7 0x0000000000402640: _start at ??:? # ASSERT_EQ(icr & ~APIC_ICR_BUSY, val & ~APIC_ICR_BUSY) failed. # icr & ~APIC_ICR_BUSY is 0 # val & ~APIC_ICR_BUSY is 0x44000 not ok 47 selftests: kvm: xapic_state_test # exit=254 The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20230924/202309242109.43637c74-oliver.sang@xxxxxxxxx -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki