Comment 10 for bug 1821903

Revision history for this message
Po-Hsu Lin (cypressyew) wrote : Re: svm in ubuntu_kvm_unit_tests failed on 3.13 / 4.4 / 4.15

The svm test will now fail early with node gonzo + 4.15.0-147

BUILD_HEAD=0fb180cf
timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.2L6tnYwNVP -smp 2 -cpu max,+svm -m 4g # -initrd /tmp/tmp.MBp5T3NwS4
enabling apic
enabling apic
paging enabled
cr0 = 80010011
cr3 = 10bf000
cr4 = 20
NPT detected - running all tests with NPT enabled
PASS: null
PASS: vmrun
PASS: ioio
PASS: vmrun intercept check
Unhandled exception 6 #UD at ip 0000000000400fc0
error_code=0000 rflags=00010002 cs=00000008
rax=0000000000000000 rcx=0000000000000000 rdx=00000000ffffffff rbx=0000000000000000
rbp=0000000000434de8 rsi=0000000000000000 rdi=000000000041a9a0
 r8=0000000000000000 r9=0000000000000000 r10=0000000000000000 r11=0000000000000000
r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000
cr0=0000000080010011 cr2=0000000000000000 cr3=00000000010bf000 cr4=0000000000000020
cr8=0000000000000000
 STACK: @400fc0 40041d
FAIL svm

$ git bisect log
git bisect start
# bad: [0fb180cfbdf236559cd10675a85b9e6d78deafc4] UBUNTU: SAUCE: vmx: split tests that fail on bionic
git bisect bad 0fb180cfbdf236559cd10675a85b9e6d78deafc4
# good: [764aa0b88d9556520457f13b38d5cea21600545b] arm: powerpc: comment halt(code)
git bisect good 764aa0b88d9556520457f13b38d5cea21600545b
# bad: [c88b7beaafd711e0ca98529a56c9d35eedc60b5f] lib/alloc.c: fix missing include
git bisect bad c88b7beaafd711e0ca98529a56c9d35eedc60b5f
# good: [d5b60621b0e6863fd62e4657b7a2ec70bf7eee34] lib: Add WRITE_ONCE and READ_ONCE implementations in compiler.h
git bisect good d5b60621b0e6863fd62e4657b7a2ec70bf7eee34
# good: [e44a257a89ef821802b21cf4fd0ee6f124278e15] arm/arm64: gic: Move gic_state enumeration to asm/gic.h
git bisect good e44a257a89ef821802b21cf4fd0ee6f124278e15
# good: [fc67b07a4b5183a336f254bc886f9032f603bd5b] s390x: smp: Test stop and store status on a running and stopped cpu
git bisect good fc67b07a4b5183a336f254bc886f9032f603bd5b
# bad: [7edd698ed003e3c4d64868208c30d33fd97168b7] scripts/arch-run: Support testing of hvf accel
git bisect bad 7edd698ed003e3c4d64868208c30d33fd97168b7
# good: [7e7d93578f02bba2e484ba49a08fa6b2ebbdc4a8] svm: Fix nmi hlt test to fail test correctly
git bisect good 7e7d93578f02bba2e484ba49a08fa6b2ebbdc4a8
# good: [a3307eb5dbdba6b657a0d9b19eb9bc0c05d04add] Merge tag 's390x-2020-04-30' of https://github.com/davidhildenbrand/kvm-unit-tests
git bisect good a3307eb5dbdba6b657a0d9b19eb9bc0c05d04add
# good: [9c8389546e1fbb6e25cc5bc22bc2f2765e9dbfbe] svm: Test V_IRQ injection
git bisect good 9c8389546e1fbb6e25cc5bc22bc2f2765e9dbfbe
# bad: [401299a581d7b255a615de482c3a9e97e090fd8a] svm_tests: add RSM intercept test

Caused by this test case:
https://gitlab.com/kvm-unit-tests/kvm-unit-tests/-/commit/401299a581d7b255a615de482c3a9e97e090fd8a
git bisect bad 401299a581d7b255a615de482c3a9e97e090fd8a
# good: [b49a1a6d4e234a60211805b7cb0db06c9b293209] x86: VMX: Add a VMX-preemption timer expiration test
git bisect good b49a1a6d4e234a60211805b7cb0db06c9b293209
# first bad commit: [401299a581d7b255a615de482c3a9e97e090fd8a] svm_tests: add RSM intercept test