vmx test in kvm-unit-test failed on E4v3 azure node with 4.13/4.14 kernel

Bug #1748107 reported by Po-Hsu Lin on 2018-02-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-azure (Ubuntu)
Undecided
Unassigned
linux-azure-edge (Ubuntu)
Undecided
Unassigned

Bug Description

With Joshua's comment in bug 1719524: "Nested KVM can only be tried on instance sizes with nested Hypervisor support: Ev3 and Dv3.", although the instance name is E4v3 here but I can start a KVM on it.

Test vmx test will fail on it.

Steps:
1. git clone --depth=1 https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
2. cd kvm-unit-tests; ./configure; make
3. Run the vmx test as root:

# TESTNAME=vmx TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,+vmx -m 2560 -append -exit_monitor_from_l2_test
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/vmx.flat -smp 1 -cpu host,+vmx -m 2560 -append -exit_monitor_from_l2_test # -initrd /tmp/tmp.hV8fx1MS8u
enabling apic
paging enabled
cr0 = 80010011
cr3 = 46b000
cr4 = 20
PASS: test vmxon with FEATURE_CONTROL cleared
PASS: test vmxon without FEATURE_CONTROL lock
PASS: test enable VMX in FEATURE_CONTROL
PASS: test FEATURE_CONTROL lock bit
PASS: test vmxon with unaligned vmxon region
PASS: test vmxon with bits set beyond physical address width
PASS: test vmxon with invalid revision identifier
PASS: test vmxon with valid vmxon region
PASS: test vmptrld with unaligned vmcs
PASS: test vmptrld with vmcs address bits set beyond physical address width
PASS: test vmptrld with vmxon region
PASS: test vmptrld with vmxon region vm-instruction error
PASS: test vmptrld with valid vmcs region
PASS: test vmclear with unaligned vmcs
PASS: test vmclear with vmcs address bits set beyond physical address width
PASS: test vmclear with vmxon region
PASS: test vmclear with valid vmcs region
PASS: test vmclear flush (current VMCS)
PASS: test vmclear flush (!current VMCS)
PASS: test vmptrst
PASS: VMWRITE/VMREAD
PASS: VMREAD TSC_OFFSET after VMWRITE TSC_OFFSET
PASS: VMREAD TSC_OFFSET_HI after VMWRITE TSC_OFFSET
PASS: VMREAD TSC_OFFSET_HI after VMWRITE TSC_OFFSET_HI
PASS: VMREAD TSC_OFFSET after VMWRITE TSC_OFFSET_HI
VMCLEAR VMCS0
VMPTRLD VMCS0
PASS: current:VMCS0 active:[VMCS0]
VMCLEAR VMCS0
VMPTRLD VMCS0
PASS: current:VMCS0 active:[VMCS0]
VMCLEAR VMCS1
PASS: current:VMCS0 active:[VMCS0]
VMPTRLD VMCS1
PASS: current:VMCS1 active:[VMCS0,VCMS1]
VMPTRLD VMCS0
PASS: current:VMCS0 active:[VMCS0,VCMS1]
VMPTRLD VMCS1
PASS: current:VMCS1 active:[VMCS0,VCMS1]
VMPTRLD VMCS1
PASS: current:VMCS1 active:[VMCS0,VCMS1]
VMCLEAR VMCS0
PASS: current:VMCS1 active:[VCMS1]
VMPTRLD VMCS1
PASS: current:VMCS1 active:[VCMS1]
VMCLEAR VMCS0
VMCLEAR VMCS1

Test suite: VMX capability reporting
PASS: MSR_IA32_VMX_BASIC
PASS: MSR_IA32_VMX_MISC
PASS: MSR_IA32_VMX_PINBASED_CTLS
PASS: MSR_IA32_VMX_PROCBASED_CTLS
PASS: MSR_IA32_VMX_PROCBASED_CTLS2
PASS: MSR_IA32_VMX_EXIT_CTLS
PASS: MSR_IA32_VMX_ENTRY_CTLS
PASS: MSR_IA32_VMX_IA32_VMX_CR0_FIXED0/1
PASS: MSR_IA32_VMX_IA32_VMX_CR4_FIXED0/1
PASS: MSR_IA32_VMX_VMCS_ENUM
PASS: MSR_IA32_VMX_EPT_VPID_CAP

Test suite: null
PASS: Basic VMX test

Test suite: vmenter
PASS: test vmlaunch
PASS: test vmresume

Test suite: preemption timer
PASS: Keep preemption value
PASS: Save preemption value
PASS: busy-wait for preemption timer
PASS: preemption timer during hlt
PASS: preemption timer with 0 value

Test suite: control field PAT
PASS: Exit save PAT
PASS: Exit load PAT
PASS: Entry load PAT

Test suite: control field EFER
PASS: Exit save EFER
PASS: Exit load EFER
PASS: Entry load EFER

Test suite: CR shadowing
PASS: Read through CR0
PASS: Read through CR4
PASS: Write through CR0
PASS: Write through CR4
PASS: Read shadowing CR0
PASS: Read shadowing CR4
PASS: Write shadowing CR0 (same value)
PASS: Write shadowing CR4 (same value)
PASS: Write shadowing different X86_CR0_TS
PASS: Write shadowing different X86_CR0_MP
PASS: Write shadowing different X86_CR4_TSD
PASS: Write shadowing different X86_CR4_DE

Test suite: I/O bitmap
PASS: I/O bitmap - I/O pass
PASS: I/O bitmap - I/O width, byte
PASS: I/O bitmap - I/O direction, in
PASS: I/O bitmap - trap in
PASS: I/O bitmap - I/O width, word
PASS: I/O bitmap - I/O direction, out
PASS: I/O bitmap - trap out
PASS: I/O bitmap - I/O width, long
PASS: I/O bitmap - I/O width, long
PASS: I/O bitmap - I/O port, low part
PASS: I/O bitmap - I/O port, high part
PASS: I/O bitmap - partial pass
PASS: I/O bitmap - overrun
PASS: I/O bitmap - ignore unconditional exiting
PASS: I/O bitmap - unconditional exiting

Test suite: instruction intercept
PASS: execute HLT
PASS: intercept HLT
PASS: execute INVLPG
PASS: intercept INVLPG
PASS: execute MWAIT
PASS: intercept MWAIT
Unhandled exception 13 #GP at ip 00000000004039d5
error_code=0000 rflags=00010046 cs=00000008
rax=0000000000000000 rcx=0000000000000000 rdx=00000000004039d3 rbx=000000000041bcfa
rbp=0000000000472fdf rsi=0000000000000000 rdi=0000000000000006
 r8=000000000041cf72 r9=00000000000003f8 r10=0000000000000000 r11=0000000000000000
r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000
cr0=0000000080010031 cr2=0000000000000000 cr3=000000000046b000 cr4=0000000000002020
cr8=0000000000000000
 STACK: @4039d5 401eb6 4004dd

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.14.0-1004-azure-edge 4.14.0-1004.4
ProcVersionSignature: User Name 4.14.0-1004.4-username-edge 4.14.14
Uname: Linux 4.14.0-1004-azure-edge x86_64
ApportVersion: 2.20.1-0ubuntu2.15
Architecture: amd64
Date: Thu Feb 8 06:17:46 2018
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-azure-edge
UpgradeStatus: No upgrade log present (probably fresh install)

Po-Hsu Lin (cypressyew) wrote :
summary: vmx test in kvm-unit-test failed on E4v3 azure node with 4.14 kernel
- Edit
Po-Hsu Lin (cypressyew) on 2018-02-08
summary: - vmx test in kvm-unit-test failed on E4v3 azure node with 4.14 kernel
+ vmx test in kvm-unit-test failed on E4v3 azure node with 4.13/4.14
+ kernel
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers