Lines Matching full:test
3 * This is a framework to test nested VMX for KVM, which
4 * started as a project of GSoC 2013. All test cases should
8 * How to write test cases?
9 * Add callbacks of test suite in variant "vmx_tests". You can
11 * 1. init function used for initializing test suite
18 * If no special function is needed for a test suite, use
23 * Currently, vmx test framework only set up one VCPU and one
24 * concurrent guest test environment with same paging for L2 and
438 * Test with two values to candy-stripe the 5 flags stored/loaded by in test_vmread_vmwrite_pf()
743 "test vmclear flush (current VMCS)"); in test_vmclear_flushing()
751 "test vmclear flush (!current VMCS)"); in test_vmclear_flushing()
767 * is only used for a specific test and is discarded in test_vmclear()
773 report(vmcs_clear(tmp_root) == 1, "test vmclear with unaligned vmcs"); in test_vmclear()
779 "test vmclear with vmcs address bits set beyond physical address width"); in test_vmclear()
783 report(vmcs_clear(tmp_root) == 1, "test vmclear with vmxon region"); in test_vmclear()
787 "test vmclear with valid vmcs region"); in test_vmclear()
1367 "test vmxon with FEATURE_CONTROL cleared"); in test_vmx_feature_control()
1371 "test vmxon without FEATURE_CONTROL lock"); in test_vmx_feature_control()
1380 report(vmx_enabled, "test enable VMX in FEATURE_CONTROL"); in test_vmx_feature_control()
1383 "test FEATURE_CONTROL lock bit"); in test_vmx_feature_control()
1426 * toggling them will send the test into the weeds before it in test_vmxon_bad_cr()
1499 report(ret < 0, "test vmxon with unaligned vmxon region"); in test_vmxon()
1506 report(ret < 0, "test vmxon with bits set beyond physical address width"); in test_vmxon()
1513 report(ret < 0, "test vmxon with invalid revision identifier"); in test_vmxon()
1522 report(!ret, "test vmxon with valid vmxon region"); in test_vmxon()
1539 "test vmptrld with unaligned vmcs"); in test_vmptrld()
1545 "test vmptrld with vmcs address bits set beyond physical address width"); in test_vmptrld()
1552 "test vmptrld with vmxon region"); in test_vmptrld()
1554 "test vmptrld with vmxon region vm-instruction error"); in test_vmptrld()
1557 "test vmptrld with valid vmcs region"); in test_vmptrld()
1568 report((!ret) && (vmcs1 == vmcs2), "test vmptrst"); in test_vmptrst()
1722 printf("%s skipping test: %s\n", in_guest ? "Guest" : "Host", msg); in test_skip()
1837 static int test_run(struct vmx_test *test) in test_run() argument
1842 if (test->v2) { in test_run()
1844 if (test->init || test->guest_main || test->exit_handler || in test_run()
1845 test->syscall_handler) { in test_run()
1846 report_fail("V2 test cannot specify V1 callbacks."); in test_run()
1853 if (test->name == NULL) in test_run()
1854 test->name = "(no name)"; in test_run()
1860 init_vmcs(&(test->vmcs)); in test_run()
1861 /* Directly call test->init is ok here, init_vmcs has done in test_run()
1863 if (test->init && test->init(test->vmcs) != VMX_TEST_START) in test_run()
1867 test->exits = 0; in test_run()
1868 current = test; in test_run()
1869 regs = test->guest_regs; in test_run()
1873 printf("\nTest suite: %s\n", test->name); in test_run()
1882 if (test->v2) in test_run()
1883 test->v2(); in test_run()
1902 * Add a teardown step. Executed after the test's main function returns.
1925 * test. Must be called before first enter_guest call.
1935 * start from the beginning. This can be called multiple times per test.
2046 printf("filter = %s, test = %s\n", filters[0], name); in test_wanted()
2081 /* We want xAPIC mode to test MMIO passthrough from L1 (us) to L2. */ in main()