ept test fails in kvm_unit_tests

Bug #1824228 reported by Sean Feole on 2019-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Undecided
Unassigned
linux-azure (Ubuntu)
Undecided
Unassigned
Disco
Undecided
Unassigned
linux-kvm (Ubuntu)
Undecided
Unassigned
Disco
Undecided
Unassigned
linux-oracle (Ubuntu)
Undecided
Unassigned
Disco
Undecided
Unassigned

Bug Description

Reproducible: Yes,
Series: cosmic
Kernel: "linux-azure 4.18.0-1015.15"
Steps:

1.) apt-get install -y 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.) sudo TESTNAME=ept TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
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,host-phys-bits,+vmx -m 2560 -append ept_access* # -initrd /tmp/tmp.RcwfbGP5Ou
enabling apic
paging enabled
cr0 = 80010011
cr3 = 477000
cr4 = 20

Test suite: ept_access_test_not_present

Test suite: ept_access_test_read_only

Test suite: ept_access_test_write_only

Test suite: ept_access_test_read_write

Test suite: ept_access_test_execute_only

Test suite: ept_access_test_read_execute

Test suite: ept_access_test_write_execute

Test suite: ept_access_test_read_write_execute

Test suite: ept_access_test_reserved_bits

Test suite: ept_access_test_ignored_bits

Test suite: ept_access_test_paddr_not_present_ad_disabled

Test suite: ept_access_test_paddr_not_present_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_read_only_ad_disabled
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff49 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff62 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff7b 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ffa8 401577 4039d0 400312

Test suite: ept_access_test_paddr_read_only_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_read_write

Test suite: ept_access_test_paddr_read_write_execute

Test suite: ept_access_test_paddr_read_execute_ad_disabled
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fde3 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fdfc 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fe15 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fe42 401577 4039d0 400312

Test suite: ept_access_test_paddr_read_execute_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_not_present_page_fault

Test suite: ept_access_test_force_2m_page
SUMMARY: 7822 tests, 8 unexpected failures

Sean Feole (sfeole) wrote :

Affected instances:
Standard_D2s_v3
Standard_D2_v3
Standard_DC2s
Standard_E2s_v3
Standard_F2s_v2

Sean Feole (sfeole) wrote :

also affects bionic, linux-azure 4.18.0-1015.15~18.04.1

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

also affects disco, linux-azure 5.0.0-1005.5

  04/26 18:31:44 DEBUG| utils:0153| [stdout] FAIL ept (7822 tests, 8 unexpected failures)
90. 04/26 18:31:44 DEBUG| utils:0153| [stdout] TESTNAME=vmx_eoi_bitmap_ioapic_scan TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 2 -cpu host,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test

Po-Hsu Lin (cypressyew) wrote :

Found on B-4.15 Oracle, instance VM.DenseIO2.16
TESTNAME=ept TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
FAIL ept (8489 tests, 5 unexpected failures)

Po-Hsu Lin (cypressyew) on 2019-07-22
no longer affects: ubuntu-kernel-tests
tags: added: 5.0 disco sru-20190701 ubuntu-kvm-unit-tests
Sean Feole (sfeole) on 2019-08-12
tags: added: sru-20190722
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers