svm in ubuntu_kvm_unit_tests failed on 3.13 / 4.4 / 4.18

Bug #1821903 reported by Po-Hsu Lin on 2019-03-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux (Ubuntu)
Undecided
Unassigned
Trusty
Undecided
Unassigned
Xenial
Undecided
Unassigned
Cosmic
Undecided
Unassigned
linux-signed-lts-xenial (Ubuntu)
Trusty
Undecided
Unassigned
Xenial
Undecided
Unassigned
Cosmic
Undecided
Unassigned

Bug Description

This svm test timeouted on T-3.13
failed on T-4.4 with:

root@gonzo:/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests# TESTNAME=svm TIMEOUT=90s ACCEL= ./x86/run x86/svm.flat -smp 2 -cpu qemu64,+svm
timeout -k 1s --foreground 90s /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 x86/svm.flat -smp 2 -cpu qemu64,+svm # -initrd /tmp/tmp.PDi0UKyCcl

enabling apic
enabling apic
paging enabled
cr0 = 80010011
cr3 = 466000
cr4 = 20
PASS: null
PASS: vmrun
PASS: ioio
PASS: vmrun intercept check
PASS: cr3 read intercept
PASS: cr3 read nointercept
PASS: cr3 read intercept emulate
PASS: dr intercept check
PASS: msr intercept check
PASS: mode_switch
PASS: asid_zero
PASS: sel_cr0_bug
FAIL: tsc_adjust
    Latency VMRUN : max: 80562 min: 19763 avg: 20374
    Latency VMEXIT: max: 83146 min: 20193 avg: 20834
PASS: latency_run_exit
    Latency VMLOAD: max: 38298 min: 4619 avg: 4838
    Latency VMSAVE: max: 32870 min: 4637 avg: 4809
    Latency STGI: max: 55478 min: 3846 avg: 3923
    Latency CLGI: max: 67473 min: 3379 avg: 3437
PASS: latency_svm_insn
SUMMARY: 15 tests, 1 unexpected failures

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-4.4.0-143-generic 4.4.0-143.169~14.04.2
ProcVersionSignature: User Name 4.4.0-143.169~14.04.2-generic 4.4.170
Uname: Linux 4.4.0-143-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.29
Architecture: amd64
Date: Wed Mar 27 11:00:42 2019
SourcePackage: linux-signed-lts-xenial
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
summary: - svm in ubuntu_kvm_unit_test failed on T-3.13 / T-4.4
+ svm in ubuntu_kvm_unit_test failed on 3.13 4.4
summary: - svm in ubuntu_kvm_unit_test failed on 3.13 4.4
+ svm in ubuntu_kvm_unit_test failed on 3.13 / 4.4
tags: added: xenial

Could be found on X-4.4 as well.

no longer affects: ubuntu-kernel-tests

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1821903

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Trusty):
status: New → Incomplete
Changed in linux (Ubuntu Xenial):
status: New → Incomplete
Po-Hsu Lin (cypressyew) on 2019-03-28
no longer affects: linux-signed-lts-xenial (Ubuntu)

I fixed the issue with tsc-adjust on kvm-unit-tests itself, sent upstream, fixed on our disco branch. That should fix it for 4.4 kernels as well, though I only tested on 5.0 kernels for now. Trusty likely needs further review.

Changed in linux (Ubuntu Cosmic):
status: New → Fix Committed
Changed in linux (Ubuntu Xenial):
status: Incomplete → Fix Committed
Changed in linux-signed-lts-xenial (Ubuntu Trusty):
status: New → Fix Committed
Changed in linux-signed-lts-xenial (Ubuntu Xenial):
status: New → Invalid
Changed in linux-signed-lts-xenial (Ubuntu Cosmic):
status: New → Invalid
tags: added: verification-needed verification-needed-xenial
Po-Hsu Lin (cypressyew) wrote :

Saw this one passed with Bionic 5.0 kernel (AMD64)

Po-Hsu Lin (cypressyew) wrote :

Issue still exist with Cosmic amd64 (node gonzo):
'/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/svm'
 BUILD_HEAD=b5d7d7f1
 timeout -k 1s --foreground 90s /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.VnkI4knNSX -smp 2 -cpu qemu64,+svm,+tsc-adjust # -initrd /tmp/tmp.Ool7CJM5vy
 qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
 qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
 enabling apic
 enabling apic
 paging enabled
 cr0 = 80010011
 cr3 = 467000
 cr4 = 20
 PASS: null
 PASS: vmrun
 PASS: ioio
 PASS: vmrun intercept check
 PASS: cr3 read intercept
 PASS: cr3 read nointercept
 PASS: cr3 read intercept emulate
 PASS: dr intercept check
 PASS: msr intercept check
 PASS: mode_switch
 PASS: asid_zero
 PASS: sel_cr0_bug
 FAIL: tsc_adjust
 Latency VMRUN : max: 169094 min: 17443 avg: 17769
 Latency VMEXIT: max: 127855 min: 17870 avg: 18294
 PASS: latency_run_exit
 Latency VMLOAD: max: 61609 min: 4802 avg: 4958
 Latency VMSAVE: max: 36274 min: 4676 avg: 4869
 Latency STGI: max: 72350 min: 3969 avg: 4070
 Latency CLGI: max: 69159 min: 3511 avg: 3534
 PASS: latency_svm_insn
 SUMMARY: 15 tests, 1 unexpected failures
 FAIL svm (15 tests, 1 unexpected failures)

tags: added: cosmic
tags: added: sru-20190603
tags: added: ubuntu-kvm-unit-tests
summary: - svm in ubuntu_kvm_unit_test failed on 3.13 / 4.4
+ svm in ubuntu_kvm_unit_tests failed on 3.13 / 4.4 / 4.18
Changed in linux (Ubuntu Cosmic):
status: Fix Committed → Confirmed
Po-Hsu Lin (cypressyew) wrote :

For node gonzo with 4.15, it's:
  WARNING: vmx not supported, add '-cpu host'
  SUMMARY: 0 tests
  SKIP vmx (0 tests)

That might explain why this has passed with Disco.
(The svm test is still failing on some specific node (bug 1847947)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers