vmx_apicv_test in ubuntu_kvm_unit_tests failed on X/B-KVM X-azure

Bug #1827866 reported by Po-Hsu Lin on 2019-05-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux-azure (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
linux-kvm (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned
linux-oracle (Ubuntu)
Undecided
Unassigned
Xenial
Undecided
Unassigned
Bionic
Undecided
Unassigned

Bug Description

vmx_apicv_test from ubuntu_kvm_unit_tests failed on X-KVM:
FAIL vmx_apicv_test (timeout; duration=10)

 the test was terminated with return code 124:

# TESTNAME=vmx_apicv_test TIMEOUT=10 ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,+vmx -append "apic_reg_virt_test virt_x2apic_mode_test"
timeout -k 1s --foreground 10 /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/vmx.flat -smp 1 -cpu host,+vmx -append apic_reg_virt_test virt_x2apic_mode_test # -initrd /tmp/tmp.K6b7rjmgp8
enabling apic
paging enabled
cr0 = 80010011
cr3 = 477000
cr4 = 20

Test suite: apic_reg_virt_test
--- Virtualize APIC accesses test ---
PASS: xapic - reading 0x000: got APIC access exit @ page offset 0x000, want 0x000
PASS: xapic - writing 0x12345678 to 0x000: got APIC access exit @ page offset 0x000, want 0x000
PASS: xapic - reading 0x010: got APIC access exit @ page offset 0x010, want 0x010
PASS: xapic - writing 0x12345678 to 0x010: got APIC access exit @ page offset 0x010, want 0x010
PASS: xapic - reading 0x020: got APIC access exit @ page offset 0x020, want 0x020
PASS: xapic - writing 0x12345678 to 0x020: got APIC access exit @ page offset 0x020, want 0x020
PASS: xapic - reading 0x030: got APIC access exit @ page offset 0x030, want 0x030
....
....
PASS: xapic - writing 0x12345678 to 0x380: non-virtualized write; val is 0x12345678, want 0x12345678
PASS: xapic - reading 0x390: read 0x12345678, expected 0x12345678.
PASS: xapic - writing 0x12345678 to 0x390: non-virtualized writqemu-system-x86_64: terminating on signal 15 from pid 1327

# echo $?
124

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-1044-kvm 4.4.0-1044.50
ProcVersionSignature: Ubuntu 4.4.0-1044.50-kvm 4.4.177
Uname: Linux 4.4.0-1044-kvm x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Mon May 6 10:47:17 2019
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
Po-Hsu Lin (cypressyew) wrote :

vmx_apicv_test timeouted on B-KVM:
FAIL vmx_apicv_test (timeout; duration=10)

description: updated
Po-Hsu Lin (cypressyew) on 2019-09-16
tags: added: ubuntu-kvm-unit-tests
Po-Hsu Lin (cypressyew) on 2019-10-17
tags: added: 4.15 4.4
tags: added: sru-20190930
summary: - vmx_apicv_test in ubuntu_kvm_unit_tests failed on X-KVM
+ vmx_apicv_test in ubuntu_kvm_unit_tests failed on X/B-KVM

Can be found on X-Azure 4.15 as well:
 Running '/home/azure/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/vmx_apicv_test'
 BUILD_HEAD=e2c275c4
 timeout -k 1s --foreground 10 /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.O2MSEezMNL -smp 1 -cpu host,+vmx -append apic_reg_virt_test virt_x2apic_mode_test # -initrd /tmp/tmp.nFaa5lDEut
 enabling apic
 paging enabled
 cr0 = 80010011
 cr3 = 477000
 cr4 = 20

 Test suite: apic_reg_virt_test
 qemu-system-x86_64: terminating on signal 15 from pid 21120
 FAIL vmx_apicv_test (timeout; duration=10)
 qemu:qemu_cpu_kick_thread: No such process

tags: added: azure
summary: - vmx_apicv_test in ubuntu_kvm_unit_tests failed on X/B-KVM
+ vmx_apicv_test in ubuntu_kvm_unit_tests failed on X/B-KVM X-azure
Po-Hsu Lin (cypressyew) wrote :

Found on B-aws amd64 4.15

tags: added: sru-20191021
Po-Hsu Lin (cypressyew) wrote :

Failed on Oracle B-4.15
Passed on Oracle B-5.0

Po-Hsu Lin (cypressyew) wrote :

Failed on B-AWS-5.3 bare-metal instance i3.metal

 PASS: x2apic - writing 0x78 to 0x080: x2APIC write; got 0x78, want 0x78
 Unhandled exception 13 #GP at ip 00000000004071a3
 error_code=0000 rflags=00010006 cs=00000008
 rax=0000000000000078 rcx=0000000000000809 rdx=0000000000000000 rbx=0000000000000009
 rbp=000000000047efdf rsi=000000000042568d rdi=000000000042568d
 r8=000000000000000a r9=00000000000003f8 r10=000000000000000d r11=0000000000000000
 r12=0000000000000000 r13=0000000000000000 r14=0000000000403dcc r15=0000000000000000
 cr0=0000000080010031 cr2=0000000000000000 cr3=0000000000477000 cr4=0000000000002020
 cr8=0000000000000007
 STACK: @4071a3 40170b 4004dd
 FAIL vmx_apicv_test

Po-Hsu Lin (cypressyew) wrote :

Passed with B-KVM 4.15.0-1051.51 this cycle.

Po-Hsu Lin (cypressyew) wrote :

This failure can be found on Eoan bare metal node fili (5.3.0-25.27)

 Unhandled exception 13 #GP at ip 00000000004071bf
 error_code=0000 rflags=00010006 cs=00000008
 rax=0000000000000078 rcx=0000000000000809 rdx=0000000000000000 rbx=0000000000000009
 rbp=000000000047efdf rsi=000000000000000a rdi=00000000000003fd
 r8=000000000042568d r9=00000000000003f8 r10=000000000000000d r11=0000000000000000
 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000403d36
 cr0=0000000080010031 cr2=0000000000000000 cr3=0000000000477000 cr4=0000000000002020
 cr8=0000000000000007
 STACK: @4071bf 40173d 4004dd
 FAIL vmx_apicv_test

tags: added: eoan sru-20191202
Po-Hsu Lin (cypressyew) wrote :

This issue can be found on AWS Trusty 4.4 as well (4.4.0-1061.65-aws):

 timeout -k 1s --foreground 10 /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.QWPJWlQ7uF -smp 1 -cpu host,+vmx -append apic_reg_virt_test virt_x2apic_mode_test # -initrd /tmp/tmp.OCXCEUzFNz
 enabling apic
 paging enabled
 cr0 = 80010011
 cr3 = 477000
 cr4 = 20

 Test suite: apic_reg_virt_test
 --- Virtualize APIC accesses test ---
 FAIL: xapic - reading 0x000: x86/vmx_tests.c:2184: Assertion failed: (expected) == (actual)
 LHS: 0x000000000000002c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0010'1100 - 44
 RHS: 000000000000000000 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000 - 0
 Expected VMX_APIC_ACCESS, got VMX_EXC_NMI.
 STACK: 405e1c 409a1e 401556 4039f1 400312

 Test suite: virt_x2apic_mode_test
 --- Baseline test ---
 FAIL: xapic - reading 0x000: x2apic - reading 0x000: x86/vmx_tests.c:2184: Assertion failed: (expected) == (actual)
 LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18
 RHS: 000000000000000000 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000 - 0
 Expected VMX_VMCALL, got VMX_EXC_NMI.
 STACK: 405e1c 405e46 40c979 401556 4039f1 400312
 SUMMARY: 8 tests, 2 unexpected failures
 FAIL vmx_apicv_test (8 tests, 2 unexpected failures)

tags: added: aws trusty
Po-Hsu Lin (cypressyew) wrote :

BTW for AWS T-4.4, this is only failing on:
* r5.metal
* c5.metal

But passed with i3.metal

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

Other bug subscribers