Hello Thadeu, With the B-kvm proposed kernel (4.15.0-1084.86 linux-kvm), this vmx-nm-test still hangs This is syslog from console:
[ 1003.399966] kvm: MWAIT instruction emulated as NOP! [ 1061.306351] *** Guest State *** [ 1061.306676] CR0: actual=0x0000000080010031, shadow=0x0000000080010031, gh_mask=fffffffffffffff7 [ 1061.307599] CR4: actual=0x0000000000002020, shadow=0x0000000000002020, gh_mask=ffffffffffffe871 [ 1061.308426] CR3 = 0x0000000000477000 [ 1061.308701] RSP = 0x000000000046e748 RIP = 0x0000000000404850 [ 1061.309219] RFLAGS=0x00000002 DR7 = 0x0000000000000400 [ 1061.309715] Sysenter RSP=aaaaaaaaaaaaaaaa CS:RIP=0008:00000000004003d8 [ 1061.310334] CS: sel=0x0008, attr=0x0a09b, limit=0xffffffff, base=0x0000000000000000 [ 1061.311254] DS: sel=0x0010, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 [ 1061.312037] SS: sel=0x0010, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 [ 1061.312812] ES: sel=0x0010, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 [ 1061.313780] FS: sel=0x0010, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 [ 1061.314636] GS: sel=0x0010, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 [ 1061.315517] GDTR: limit=0x0000ffff, base=0x000000000041d00a [ 1061.316671] LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 [ 1061.317590] IDTR: limit=0x0000ffff, base=0x0000000000000000 [ 1061.318534] TR: sel=0x0080, attr=0x0008b, limit=0x00000067, base=0x000000008b41d48a [ 1061.319666] EFER = 0x0000000000000500 PAT = 0x0007040600070406 [ 1061.320394] DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 [ 1061.321303] BndCfgS = 0x0000000000000000 [ 1061.321756] Interruptibility = 00000000 ActivityState = 00000000 [ 1061.322576] InterruptStatus = 0000 [ 1061.322948] *** Host State *** [ 1061.323317] RIP = 0xffffffffc058c0e6 RSP = 0xffffa5b8879c3ca0 [ 1061.323986] CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 [ 1061.324698] FSBase=00007fa9f3915700 GSBase=ffffa2487fd00000 TRBase=fffffe000005b000 [ 1061.325589] GDTBase=fffffe0000059000 IDTBase=fffffe0000000000 [ 1061.326382] CR0=0000000080050033 CR3=0000000128b3e000 CR4=00000000000026a0 [ 1061.327374] Sysenter RSP=fffffe000005b000 CS:RIP=0010:ffffffffbe801700 [ 1061.328157] EFER = 0x0000000000000d01 PAT = 0x0007040600070406 [ 1061.328838] *** Control State *** [ 1061.329236] PinBased=000000bf CPUBased=b6a06dfe SecondaryExec=000223e3 [ 1061.330206] EntryControls=0001d3ff ExitControls=00afefff [ 1061.330828] ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000 [ 1061.331815] VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000 [ 1061.332592] VMExit: intr_info=00000000 errcode=00000000 ilen=00000003 [ 1061.333421] reason=80000021 qualification=0000000000000000 [ 1061.334151] IDTVectoring: info=00000000 errcode=00000000 [ 1061.334920] TSC Offset = 0xfffffcf67b3dcccc [ 1061.335511] TPR Threshold = 0x00 [ 1061.335879] PostedIntrVec = 0xf2 [ 1061.336254] EPT pointer = 0x000000005b4ef05e [ 1061.336755] Virtual processor ID = 0x0001 ** Tags removed: verification-needed-bionic ** Tags added: verification-failed-bionic -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1872401 Title: vmx_nm_test in ubuntu_kvm_unit_tests interrupted on X-oracle-4.15 / B-oracle-4.15 / X-KVM / B-KVM Status in ubuntu-kernel-tests: New Status in linux package in Ubuntu: Invalid Status in linux source package in Xenial: New Status in linux source package in Bionic: Fix Committed Bug description: [Impact] When running kvm-unit-tests under a guest, it will be paused, requiring a reset. When running the same test on a host (vmx_nm_test), it will fail. [Test case] Grab kvm-unit-tests, build it and run: TESTNAME=vmx TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,+vmx -append "vmx_nm_test" If done inside a guest, when the host runs the bionic 4.15 kernel, the guest will pause. [Potential regressions] Nested KVM could stop working. Floating point could stop working on KVM guests, though the code that relied on this was already removed from Bionic. ------------------------------ This issue was first spotted on Mar.16 [1] The ubuntu_kvm_unit_tests will be interrupted on X-oracle-4.15 on both VM.Standard2.1 and VM.Standard2.16, this is not a regression since it can be reproduced with 4.15.0-1031-oracle #34~16.04.1: Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/vmx_nm_test' BUILD_HEAD=4671e4ba timeout -k 1s --foreground 30 /usr/bin/qemu-system-x86_64 -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.da3iFrsCzC -smp 1 -cpu host,+vmx -append vmx_nm_test # -initrd /tmp/tmp.h2DFw8L0AF enabling apic paging enabled cr0 = 80010011 cr3 = 477000 cr4 = 20 Test suite: vmx_nm_test client_loop: send disconnect: Broken pipe (node disconnected here) Before the test started, this can be found in syslog: Apr 13 06:26:25 selfprovisioned-phlin-kvm-unit kernel: [ 1073.529005] L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. After that, noting was printed and node disconnected. If you try to run this case manually, it will stop at: # ./vmx_nm_test BUILD_HEAD=4671e4ba ready!!! timeout -k 1s --foreground 30 /usr/bin/qemu-system-x86_64 -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.ZcGrnXu6se -smp 1 -cpu host,+vmx -append vmx_nm_test # -initrd /tmp/tmp.ADjEOAcRKM enabling ap (stopped here, even the "enabling apic" string was not printed) It looks like this is a new test case added since the cycle of 4.15.0-1037.41~16.04.1-oracle [1] https://bugs.launchpad.net/ubuntu-kernel- tests/+bug/1867623/comments/2 ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: linux-image-4.15.0-1031-oracle 4.15.0-1031.34~16.04.1 ProcVersionSignature: User Name 4.15.0-1031.34~16.04.1-oracle 4.15.18 Uname: Linux 4.15.0-1031-oracle x86_64 ApportVersion: 2.20.1-0ubuntu2.21 Architecture: amd64 Date: Mon Apr 13 05:18:03 2020 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: linux-signed-oracle UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1872401/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp