Lines Matching refs:vector
24 int vector; in test_cr4_lam_set_clear() local
27 vector = write_cr4_safe(read_cr4() | X86_CR4_LAM_SUP); in test_cr4_lam_set_clear()
28 report(has_lam ? !vector : vector == GP_VECTOR, in test_cr4_lam_set_clear()
31 vector = write_cr4_safe(read_cr4() & ~X86_CR4_LAM_SUP); in test_cr4_lam_set_clear()
32 report(!vector, "Expected CR4.LAM_SUP=0 to succeed"); in test_cr4_lam_set_clear()
139 int vector; in test_invpcid() local
153 vector = invpcid_safe(0, desc_ptr); in test_invpcid()
154 report(!vector, in test_invpcid()
156 vector); in test_invpcid()
159 vector = invpcid_safe(0, desc_ptr); in test_invpcid()
160 report(vector == GP_VECTOR, in test_invpcid()
162 vector); in test_invpcid()
165 vector = invpcid_safe(0, desc_ptr); in test_invpcid()
166 report(vector == GP_VECTOR, in test_invpcid()
168 vector); in test_invpcid()
173 vector = invpcid_safe(0, desc_ptr); in test_invpcid()
174 report(lam_active ? !vector : vector == GP_VECTOR, in test_invpcid()
176 lam_active ? "succeed" : "#GP", vector); in test_invpcid()
196 int vector; in test_lam_sup() local
218 vector = write_cr4_safe(cr4 | X86_CR4_LAM_SUP); in test_lam_sup()
219 report(!vector && is_lam_sup_enabled(), in test_lam_sup()
228 int vector; in test_lam_user() local
253 vector = write_cr3_safe(cr3 | X86_CR3_LAM_U48); in test_lam_user()
254 report(!vector && is_lam_u48_enabled(), "Expected CR3.LAM_U48=1 to succeed"); in test_lam_user()
264 vector = write_cr3_safe(cr3 | X86_CR3_LAM_U57); in test_lam_user()
265 report(!vector && is_lam_u57_enabled(), "Expected CR3.LAM_U57=1 to succeed"); in test_lam_user()