vmx tests fail in kvm_unit_tests

Bug #1821394 reported by Sean Feole on 2019-03-22
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux-aws (Ubuntu)
Undecided
Unassigned
linux-azure (Ubuntu)
Undecided
Unassigned
linux-kvm (Ubuntu)
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://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
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_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test"

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-VMX-preemption-timer enabled, save-VMX-preemption-timer disabled: vmlaunch succeeds
PASS: enable-VMX-preemption-timer enabled, save-VMX-preemption-timer enabled: vmlaunch succeeds
FAIL: enable-VMX-preemption-timer disabled, save-VMX-preemption-timer enabled: vmlaunch fails
PASS: enable-VMX-preemption-timer disabled, save-VMX-preemption-timer disabled: vmlaunch succeeds
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=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
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

Sean Feole (sfeole) on 2019-03-22
tags: added: aws i3.metal
Sean Feole (sfeole) wrote :

Also affects Bionic linux-aws 4.15.1035.37

tags: added: 4.15 4.18 bionic cosmic
Sean Feole (sfeole) wrote :

Also affects Xenial linux-aws 4.4.0-1078.88

tags: added: 4.4 xenial
Po-Hsu Lin (cypressyew) on 2019-03-27
no longer affects: linux (Ubuntu)
Sean Feole (sfeole) on 2019-03-28
summary: - vmx tests fail in kvm_unit_tests on aws i3.metal
+ vmx tests fail in kvm_unit_tests

The vmx tests have been failing for me as well. There were some bugs that required me to revert some patches or apply some others, that ended up being fixed on kvm_unit_tests master regarding EPT. The disco branch of our own repo of kvm_unit_tests should work fine with our 5.0 kernel, but we still need to see that running on our test systems. So far, I only tested on a very old Intel Core 2 Duo processor.

One of the other vmx test (vmx_controls_test) has been failing on said processor, and has been disabled on that same branch. That is the more complete part of that test, so at least we should not see that much failures from that one on our systems, until I get to enable it again, after some investigation.

Po-Hsu Lin (cypressyew) wrote :

Found on X KVM as well.

Sean Feole (sfeole) wrote :

affects 4.18.0-1013.15 linux-aws

Sean Feole (sfeole) wrote :

I have seen this fail in Disco on linux-aws but only on i3.metal.

TESTNAME=vmx TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,+vmx -append "-exit_monitor_from_l2_test -ept_access* -vmx_smp* -vmx_vmcs_shadow_test -vmx_controls_test"
04/30 02:54:41 DEBUG| utils:0153| [stdout] FAIL vmx (timeout; duration=90s)

tags: added: disco
Sean Feole (sfeole) wrote :

also affecting linux-azure Disco, 5.0.0-1005.5
Instances: Standard_D16s_v3 , Standard_D2_v3 , Standard_D2s_v3, Standard_E2s_v3, Standard_F2s_v2, Standard_F32s_v2

Sean Feole (sfeole) wrote :

affects 5.0.0-1007.7-aws

Changed in ubuntu-kernel-tests:
status: New → Confirmed
Changed in linux-aws (Ubuntu):
status: New → Confirmed
Sean Feole (sfeole) wrote :

affects , linux-aws-4.18.0 amd64, i3.metal

Sean Feole (sfeole) wrote :

affects , linux-azure 5.0.0-1007.7

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

Other bug subscribers