Searched refs:vmreadz (Results 1 – 13 of 13) sorted by relevance
/openbmc/linux/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | vmx.c | 306 vmwrite(GUEST_IA32_PAT, vmreadz(HOST_IA32_PAT)); in init_vmcs_guest_state() 307 vmwrite(GUEST_IA32_EFER, vmreadz(HOST_IA32_EFER)); in init_vmcs_guest_state() 309 vmreadz(HOST_IA32_PERF_GLOBAL_CTRL)); in init_vmcs_guest_state() 338 vmwrite(GUEST_CR0, vmreadz(HOST_CR0)); in init_vmcs_guest_state() 339 vmwrite(GUEST_CR3, vmreadz(HOST_CR3)); in init_vmcs_guest_state() 340 vmwrite(GUEST_CR4, vmreadz(HOST_CR4)); in init_vmcs_guest_state() 345 vmwrite(GUEST_FS_BASE, vmreadz(HOST_FS_BASE)); in init_vmcs_guest_state() 346 vmwrite(GUEST_GS_BASE, vmreadz(HOST_GS_BASE)); in init_vmcs_guest_state() 348 vmwrite(GUEST_TR_BASE, vmreadz(HOST_TR_BASE)); in init_vmcs_guest_state() 349 vmwrite(GUEST_GDTR_BASE, vmreadz(HOST_GDTR_BASE)); in init_vmcs_guest_state() [all …]
|
H A D | memstress.c | 48 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in memstress_l1_guest_code()
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | state_test.c | 63 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() 130 GUEST_ASSERT(vmreadz(GUEST_RIP) == 0xc0ffffee); in vmx_l1_guest_code() [all …]
|
H A D | hyperv_evmcs.c | 114 vmwrite(PIN_BASED_VM_EXEC_CONTROL, vmreadz(PIN_BASED_VM_EXEC_CONTROL) | in guest_code() 126 GUEST_ASSERT_EQ(vmreadz(VM_EXIT_REASON), EXIT_REASON_EXCEPTION_NMI); in guest_code() 127 GUEST_ASSERT_EQ((vmreadz(VM_EXIT_INTR_INFO) & 0xff), NMI_VECTOR); in guest_code() 139 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in guest_code() 143 vmwrite(CPU_BASED_VM_EXEC_CONTROL, vmreadz(CPU_BASED_VM_EXEC_CONTROL) | in guest_code() 147 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code() 153 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code() 162 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in guest_code() 168 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code() 176 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_MSR_READ); in guest_code() [all …]
|
H A D | vmx_apic_access_test.c | 49 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()
|
H A D | vmx_tsc_adjust_test.c | 92 control = vmreadz(CPU_BASED_VM_EXEC_CONTROL); in l1_guest_code() 98 save_cr3 = vmreadz(GUEST_CR3); in l1_guest_code() 101 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == in l1_guest_code() 107 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
H A D | vmx_preemption_timer_test.c | 98 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()
|
H A D | vmx_invalid_nested_guest_state.c | 43 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()
|
H A D | nested_exceptions_test.c | 124 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()
|
H A D | vmx_nested_tsc_scaling_test.c | 97 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()
|
H A D | triple_fault_event_test.c | 39 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_TRIPLE_FAULT); in l1_guest_code_vmx()
|
H A D | vmx_dirty_log_test.c | 63 GUEST_ASSERT(vmreadz(VM_EXIT_REASON) == EXIT_REASON_VMCALL); in l1_guest_code()
|
/openbmc/linux/tools/testing/selftests/kvm/include/x86_64/ |
H A D | vmx.h | 473 static inline uint64_t vmreadz(uint64_t encoding) in vmreadz() function
|