Home
last modified time | relevance | path

Searched refs:vmreadz (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dstate_test.c63 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffee); in vmx_l2_guest_code()
65 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffee); in vmx_l2_guest_code()
68 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0fffee); in vmx_l2_guest_code()
96 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in vmx_l1_guest_code()
102 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in vmx_l1_guest_code()
105 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in vmx_l1_guest_code()
108 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in vmx_l1_guest_code()
110 vmwrite(GUEST_RIP, vmreadz(GUEST_RIP) + 3); in vmx_l1_guest_code()
123 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffee); in vmx_l1_guest_code()
127 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in vmx_l1_guest_code()
[all …]
Dvmx_apic_access_test.c49 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
52 control = vmreadz(SECONDARY_VM_EXEC_CONTROL); in l1_guest_code()
58 GUEST_SYNC(vmreadz(APIC_ACCESS_ADDR)); in l1_guest_code()
60 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
65 GUEST_SYNC(vmreadz(APIC_ACCESS_ADDR)); in l1_guest_code()
67 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
Devmcs_test.c102 vmwrite(PIN_BASED_VM_EXEC_CONTROL, vmreadz(PIN_BASED_VM_EXEC_CONTROL) | in guest_code()
117 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in guest_code()
121 vmwrite(CPU_BASED_VM_EXEC_CONTROL, vmreadz(CPU_BASED_VM_EXEC_CONTROL) | in guest_code()
125 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code()
131 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code()
140 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in guest_code()
146 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code()
150 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in guest_code()
Dvmx_tsc_adjust_test.c97 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
103 save_cr3 = vmreadz(GUEST_CR3); in l1_guest_code()
106 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == in l1_guest_code()
112 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
Dvmx_preemption_timer_test.c98 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
99 vmwrite(GUEST_RIP, vmreadz(GUEST_RIP) + vmreadz(VM_EXIT_INSTRUCTION_LEN)); in l1_guest_code()
105 vmreadz(PIN_BASED_VM_EXEC_CONTROL) | in l1_guest_code()
130 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_PREEMPTION_TIMER); in l1_guest_code()
Dvmx_invalid_nested_guest_state.c43 GUEST_ASSERT(!(vmreadz(CPU_BASED_VM_EXEC_CONTROL) & CPU_BASED_ACTIVATE_SECONDARY_CONTROLS) || in l1_guest_code()
44 !(vmreadz(SECONDARY_VM_EXEC_CONTROL) & SECONDARY_EXEC_UNRESTRICTED_GUEST)); in l1_guest_code()
49 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_TRIPLE_FAULT); in l1_guest_code()
Dnested_exceptions_test.c124 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_REASON), EXIT_REASON_EXCEPTION_NMI); in vmx_run_l2()
125 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), vector); in vmx_run_l2()
126 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_INTR_ERROR_CODE), error_code); in vmx_run_l2()
154 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_REASON), EXIT_REASON_TRIPLE_FAULT); in l1_vmx_code()
Dvmx_nested_tsc_scaling_test.c97 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code()
101 control = vmreadz(SECONDARY_VM_EXEC_CONTROL); in l1_guest_code()
111 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
Dvmx_dirty_log_test.c63 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
Dtriple_fault_event_test.c39 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_TRIPLE_FAULT); in l1_guest_code_vmx()
/linux-6.1.9/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c273 uint32_t exit_controls = vmreadz(VM_EXIT_CONTROLS); in init_vmcs_host_state()
313 vmwrite(GUEST_ES_SELECTOR, vmreadz(HOST_ES_SELECTOR)); in init_vmcs_guest_state()
314 vmwrite(GUEST_CS_SELECTOR, vmreadz(HOST_CS_SELECTOR)); in init_vmcs_guest_state()
315 vmwrite(GUEST_SS_SELECTOR, vmreadz(HOST_SS_SELECTOR)); in init_vmcs_guest_state()
316 vmwrite(GUEST_DS_SELECTOR, vmreadz(HOST_DS_SELECTOR)); in init_vmcs_guest_state()
317 vmwrite(GUEST_FS_SELECTOR, vmreadz(HOST_FS_SELECTOR)); in init_vmcs_guest_state()
318 vmwrite(GUEST_GS_SELECTOR, vmreadz(HOST_GS_SELECTOR)); in init_vmcs_guest_state()
320 vmwrite(GUEST_TR_SELECTOR, vmreadz(HOST_TR_SELECTOR)); in init_vmcs_guest_state()
326 vmwrite(GUEST_IA32_PAT, vmreadz(HOST_IA32_PAT)); in init_vmcs_guest_state()
327 vmwrite(GUEST_IA32_EFER, vmreadz(HOST_IA32_EFER)); in init_vmcs_guest_state()
[all …]
Dperf_test_util.c48 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in perf_test_l1_guest_code()
/linux-6.1.9/tools/testing/selftests/kvm/include/x86_64/
Dvmx.h468 static inline uint64_t vmreadz(uint64_t encoding) in vmreadz() function