Lines Matching refs:vector
76 static void svm_run_l2(struct svm_test_data *svm, void *l2_code, int vector, in svm_run_l2() argument
85 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in svm_run_l2()
88 GUEST_ASSERT_EQ(ctrl->exit_code, (SVM_EXIT_EXCP_BASE + vector)); in svm_run_l2()
115 static void vmx_run_l2(void *l2_code, int vector, uint32_t error_code) in vmx_run_l2() argument
119 GUEST_ASSERT_EQ(vector == SS_VECTOR ? vmlaunch() : vmresume(), 0); in vmx_run_l2()
121 if (vector == FAKE_TRIPLE_FAULT_VECTOR) in vmx_run_l2()
125 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), vector); in vmx_run_l2()
167 static void assert_ucall_vector(struct kvm_vcpu *vcpu, int vector) in assert_ucall_vector() argument
175 TEST_ASSERT(vector == uc.args[1], in assert_ucall_vector()
176 "Expected L2 to ask for %d, got %ld", vector, uc.args[1]); in assert_ucall_vector()
179 TEST_ASSERT(vector == -1, in assert_ucall_vector()
180 "Expected L2 to ask for %d, L2 says it's done", vector); in assert_ucall_vector()
186 TEST_FAIL("Expected L2 to ask for %d, got unexpected ucall %lu", vector, uc.cmd); in assert_ucall_vector()