** Tags added: sru-20210412

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-aws in Ubuntu.
https://bugs.launchpad.net/bugs/1821394

Title:
  vmx tests fail in kvm_unit_tests

Status in ubuntu-kernel-tests:
  Confirmed
Status in linux-aws package in Ubuntu:
  Confirmed
Status in linux-azure package in Ubuntu:
  Confirmed
Status in linux-kvm package in Ubuntu:
  Confirmed
Status in linux-oracle package in Ubuntu:
  Confirmed

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

  ------------------------------------------

  Test: ubuntu-kvm-unit-tests
  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=0000000000006c14 
RBX=0000000000006c10 RCX=000000000046e290 RDX=0000000000006c16
  12/12 18:24:56 DEBUG| utils:0153| [stderr] RSI=0000000000000000 
RDI=0000000000000008 RBP=000000000046e3a0 RSP=000000000046e378
  12/12 18:24:56 DEBUG| utils:0153| [stderr] R8 =0000000000000000 R9 
=0000000000000020 R10=000000000000000d R11=0000000000000010
  12/12 18:24:56 DEBUG| utils:0153| [stderr] R12=0000000000000000 
R13=0000000000000008 R14=0000000000000001 R15=0000000000415078
  12/12 18:24:56 DEBUG| utils:0153| [stderr] RIP=0000000000404693 RFL=00000002 
[-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
  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=ffffffffffffe000 
CR3=0000000000477000 CR4=00002020
  12/12 18:24:56 DEBUG| utils:0153| [stderr] DR0=0000000000000000 
DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
  12/12 18:24:56 DEBUG| utils:0153| [stderr] DR6=00000000ffff0ff0 
DR7=0000000000000400
  12/12 18:24:56 DEBUG| utils:0153| [stderr] EFER=0000000000000d00
  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:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1821394/+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

Reply via email to