kvm-unit-tests ept failed
Host environment
- Operating system: CentOS 9
- OS/kernel version: 6.10.0-rc2
- Architecture: x86_64
- QEMU flavor: qemu-system-x86_64
- QEMU version: 9.0.50 (v9.0.0-2128-gb9ee1387e0)
- QEMU command line:
Emulated/Virtualized environment
- Operating system: CentOS 9
- OS/kernel version: 6.10.0-rc6
- Architecture: x86_64
Description of problem
On the Sierra Forest and Emerald Rapids platform, the ept test in kvm-unit-tests failed on the latest QEMU.
QEMU first bad commit is 0b275741.
This bad commit also caused other errors, such as:
1.kvm-unit-tests vmx_pf_invvpid_test
Test suite: vmx_pf_invvpid_test
Host skipping test: INVVPID ADDR unsupported
filter = vmx_pf_invvpid_test, test = vmx_pf_vpid_test
filter = vmx_pf_invvpid_test, test = vmx_exception_test
SUMMARY: 0 tests
SKIP vmx_pf_invvpid_test (0 tests)
2.kvm-unit-tests vmx_pf_no_vpid_test
Test suite: vmx_pf_no_vpid_test
run
x86/vmx_tests.c:10568: assert failed: false: Unexpected exit to L1, exit_reason: VMX_CR (0x1c) STACK: 40717c 4072a3 402039 403f11 4001bd
FAIL vmx_pf_no_vpid_test
3.kvm-unit-tests vmx:
Test suite: vmx_controls_test
FAIL: Clear primary processor-based controls bit 15: vmlaunch fails
FAIL: Clear primary processor-based controls bit 16: vmlaunch fails
Test suite: vmx_mtf_test
FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000025 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0010'0101 - 37 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_MTF, got VMX_CR. STACK: 406faa 407478 407911 402039 403f11 4001bd
4.Failed to boot L2 guest on L1 windows guest, host does not support "Intel EPT" hardware assisted MMU virtualization.
Steps to reproduce
1.git clone https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git
2.cd kvm-unit-tests; ./configure
3.make standalone
4.rmmod kvm_intel
5.modprobe kvm_intel nested=Y allow_smaller_maxphyaddr=Y
6.cd tests; ./ept
Additional information
... Test suite: ept_access_test_paddr_not_present_ad_disabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 416f68 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_not_present_ad_enabled
Test suite: ept_access_test_paddr_not_present_ad_enabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 416f09 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_only_ad_disabled
Test suite: ept_access_test_paddr_read_only_ad_disabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 417150 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_only_ad_enabled
Test suite: ept_access_test_paddr_read_only_ad_enabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 416e14 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_write
Test suite: ept_access_test_paddr_read_write FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416fb1 4170fb 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_write_execute
Test suite: ept_access_test_paddr_read_write_execute FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416fb1 4170b0 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_execute_ad_disabled
Test suite: ept_access_test_paddr_read_execute_ad_disabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 416fde 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_read_execute_ad_enabled
Test suite: ept_access_test_paddr_read_execute_ad_enabled FAIL: x86/vmx_tests.c:2164: Assertion failed: (expected) == (actual) LHS: 0x0000000000000012 - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'0010 - 18 RHS: 0x000000000000001c - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0001'1100 - 28 Expected VMX_VMCALL, got VMX_CR. STACK: 406faa 40730c 416905 416cf2 416d1f 402039 403f11 4001bd filter = ept_access*, test = ept_access_test_paddr_not_present_page_fault
Test suite: ept_access_test_paddr_not_present_page_fault filter = ept_access*, test = ept_access_test_force_2m_page
Test suite: ept_access_test_force_2m_page filter = ept_access*, test = atomic_switch_max_msrs_test filter = ept_access*, test = atomic_switch_overflow_msrs_test filter = ept_access*, test = rdtsc_vmexit_diff_test filter = ept_access*, test = vmx_mtf_test filter = ept_access*, test = vmx_mtf_pdpte_test filter = ept_access*, test = vmx_pf_exception_test filter = ept_access*, test = vmx_pf_exception_forced_emulation_test filter = ept_access*, test = vmx_pf_no_vpid_test filter = ept_access*, test = vmx_pf_invvpid_test filter = ept_access*, test = vmx_pf_vpid_test filter = ept_access*, test = vmx_exception_test SUMMARY: 5824 tests, 8 unexpected failures FAIL ept (5824 tests, 8 unexpected failures)