vmx tests fail in kvm_unit_tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Confirmed
|
Undecided
|
Unassigned | ||
linux-aws (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux-azure (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux-kvm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
linux-oracle (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Reproducible: Yes, every time.
Series: cosmic
Kernel: "linux-aws 4.18.0-1012.14"
Steps:
1.) apt-get install --yes --allow build-essential cpu-checker qemu-kvm git gcc-multilib
2.) git clone --depth=1 https:/
3.) cd kvm-unit-tests; ./configure; make
4.) TESTNAME=vmx TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,+vmx -append "-exit_
PASS: Enable-EPT enabled; EPT memory type 6: vmlaunch succeeds
FAIL: Enable-EPT enabled; EPT memory type 7: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 0: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 8: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 16: vmlaunch fails
PASS: Enable-EPT enabled; EPT page walk length 24: vmlaunch succeeds
FAIL: Enable-EPT enabled; EPT page walk length 32: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 40: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 48: vmlaunch fails
FAIL: Enable-EPT enabled; EPT page walk length 56: vmlaunch fails
INFO: Processor supports accessed and dirty flag
PASS: Enable-EPT enabled; EPT accessed and dirty flag 0: vmlaunch succeeds
PASS: Enable-EPT enabled; EPT accessed and dirty flag 1: vmlaunch succeeds
PASS: Enable-EPT enabled; reserved bits [11:7] 0: vmlaunch succeeds
FAIL: Enable-EPT enabled; reserved bits [11:7] 1: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 2: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 3: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 4: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 5: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 6: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 7: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 8: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 9: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 10: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 11: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 12: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 13: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 14: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 15: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 16: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 17: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 18: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 19: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 20: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 21: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 22: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 23: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 24: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 25: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 26: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 27: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 28: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 29: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 30: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [11:7] 31: vmlaunch fails
PASS: Enable-EPT enabled; reserved bits [63:N] 0: vmlaunch succeeds
FAIL: Enable-EPT enabled; reserved bits [63:N] 1: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 2: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 4: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 8: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 16: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 32: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 64: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 128: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 256: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 512: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 1024: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 2048: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 4096: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 8192: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 16384: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 32768: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 65536: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 131072: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 262144: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 524288: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 1048576: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 2097152: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 4194304: vmlaunch fails
FAIL: Enable-EPT enabled; reserved bits [63:N] 8388608: vmlaunch fails
PASS: Enable-EPT disabled, unrestricted-guest disabled: vmlaunch succeeds
FAIL: Enable-EPT disabled, unrestricted-guest enabled: vmlaunch fails
PASS: Enable-EPT enabled, unrestricted-guest enabled: vmlaunch succeeds
PASS: Enable-EPT enabled, unrestricted-guest disabled: vmlaunch succeeds
PASS: enable-
PASS: enable-
FAIL: enable-
PASS: enable-
PASS: VM-exit MSR-store addr [4:0] 1: vmlaunch fails
PASS: VM-exit MSR-store addr [4:0] 1: VMX inst error is 7 (actual 7)
PASS: VM-exit MSR-store addr [4:0] 2: vmlaunch fails
PASS: VM-exit MSR-store addr [4:0] 2: VMX inst error is 7 (actual 7)
PASS: VM-exit MSR-store addr [4:0] 4: vmlaunch fails
PASS: VM-exit MSR-store addr [4:0] 4: VMX inst error is 7 (actual 7)
PASS: VM-exit MSR-store addr [4:0] 8: vmlaunch fails
PASS: VM-exit MSR-store addr [4:0] 8: VMX inst error is 7 (actual 7)
KVM: entry failed, hardware error 0x7
EAX=00000000 EBX=00000000 ECX=00000000 EDX=000406f1
ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
EIP=0000fff0 EFL=00000000 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 0000ffff 00009300
CS =0000 00000000 00000000 00008000
SS =0000 00000000 0000ffff 00009300
DS =0000 00000000 0000ffff 00009300
FS =0000 00000000 0000ffff 00009300
GS =0000 00000000 0000ffff 00009300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT= 00000000 0000ffff
IDT= 00000000 0000ffff
CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=00000000000
DR6=00000000fff
EFER=0000000000
Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-------
Test: ubuntu-
Series: Disco
Kernel: 5.0.0-38.41-generic
The following is observed and reproducible in kvm_unit_tests, KVM subtest.
12/12 18:24:56 DEBUG| utils:0153| [stdout] PASS: HOST_CR3 8000000000477000: vmlaunch fails
12/12 18:24:56 DEBUG| utils:0153| [stdout] PASS: HOST_CR3 8000000000477000: VMX inst error is 8 (actual 8)
12/12 18:24:56 DEBUG| utils:0153| [stderr] KVM: entry failed, hardware error 0x80000021
12/12 18:24:56 DEBUG| utils:0153| [stderr]
12/12 18:24:56 DEBUG| utils:0153| [stderr] If you're running a guest on an Intel machine without unrestricted mode
12/12 18:24:56 DEBUG| utils:0153| [stderr] support, the failure can be most likely due to the guest entering an invalid
12/12 18:24:56 DEBUG| utils:0153| [stderr] state for Intel VT. For example, the guest maybe running in big real mode
12/12 18:24:56 DEBUG| utils:0153| [stderr] which is not supported on less recent Intel processors.
12/12 18:24:56 DEBUG| utils:0153| [stderr]
12/12 18:24:56 DEBUG| utils:0153| [stderr] RAX=00000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] RSI=00000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] R8 =0000000000000000 R9 =0000000000000020 R10=00000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] R12=00000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] RIP=00000000004
12/12 18:24:56 DEBUG| utils:0153| [stderr] ES =0010 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] CS =0008 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] SS =0010 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] DS =0010 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] FS =0010 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] GS =0010 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
12/12 18:24:56 DEBUG| utils:0153| [stderr] LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT
12/12 18:24:56 DEBUG| utils:0153| [stderr] TR =0080 000000008b41d48a 00000067 00008b00 DPL=0 TSS64-busy
12/12 18:24:56 DEBUG| utils:0153| [stderr] GDT= 000000000041d00a 0000ffff
12/12 18:24:56 DEBUG| utils:0153| [stderr] IDT= 0000000000000000 0000ffff
12/12 18:24:56 DEBUG| utils:0153| [stderr] CR0=80010031 CR2=fffffffffff
12/12 18:24:56 DEBUG| utils:0153| [stderr] DR0=00000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] DR6=00000000fff
12/12 18:24:56 DEBUG| utils:0153| [stderr] EFER=0000000000
12/12 18:24:56 DEBUG| utils:0153| [stderr] Code=00 0f 79 d0 0f 96 c0 b8 14 6c 00 00 0f 79 c4 0f 01 c2 eb 52 <55> 48 89 e5 b8 02 44 00 00 0f 78 c0 05 df ff ff 7f 83 f8 01 77 0c e8 4a cf 00 00 b8 01 00
12/12 18:26:20 DEBUG| utils:0153| [stderr] qemu-system-x86_64: terminating on signal 15 from pid 22853 (timeout)
12/12 18:26:21 DEBUG| utils:0153| [stdout] FAIL vmx (timeout; duration=90s)
12/12 18:26:21 ERROR| test:0414| Exception escaping from test:
tags: | added: aws i3.metal |
no longer affects: | linux (Ubuntu) |
summary: |
- vmx tests fail in kvm_unit_tests on aws i3.metal + vmx tests fail in kvm_unit_tests |
tags: |
added: 5.0 ubuntu-kvm-unit-tests removed: 5.0.0 |
tags: | added: linux-kvm sru-20190603 |
tags: | added: sru-20190701 |
tags: | added: azure |
tags: | added: sru-20191111 |
tags: | added: 5.3 |
description: | updated |
tags: | added: sru-20191202 |
tags: | added: sru-20200106 |
tags: | added: sru-20200127 |
tags: | added: sru-20200921 |
tags: | added: sru-20210104 |
tags: | added: sru-20210222 |
tags: | added: sru-20210412 |
tags: | added: fips |
tags: | added: aws-hwe |
Also affects Bionic linux-aws 4.15.1035.37