Searched refs:vmwrite (Results 1 – 10 of 10) sorted by relevance
/linux-6.12.1/tools/testing/selftests/kvm/lib/x86_64/ |
D | vmx.c | 107 vmx->vmwrite = (void *)vm_vaddr_alloc_page(vm); in vcpu_alloc_vmx() 108 vmx->vmwrite_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmwrite); in vcpu_alloc_vmx() 109 vmx->vmwrite_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmwrite); in vcpu_alloc_vmx() 195 vmwrite(VIRTUAL_PROCESSOR_ID, 0); in init_vmcs_control_fields() 196 vmwrite(POSTED_INTR_NV, 0); in init_vmcs_control_fields() 198 vmwrite(PIN_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PINBASED_CTLS)); in init_vmcs_control_fields() 210 vmwrite(EPT_POINTER, ept_paddr); in init_vmcs_control_fields() 214 if (!vmwrite(SECONDARY_VM_EXEC_CONTROL, sec_exec_ctl)) in init_vmcs_control_fields() 215 vmwrite(CPU_BASED_VM_EXEC_CONTROL, in init_vmcs_control_fields() 218 vmwrite(CPU_BASED_VM_EXEC_CONTROL, rdmsr(MSR_IA32_VMX_TRUE_PROCBASED_CTLS)); in init_vmcs_control_fields() [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
D | vmx_apic_access_test.c | 51 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code() 54 vmwrite(SECONDARY_VM_EXEC_CONTROL, control); in l1_guest_code() 55 vmwrite(APIC_ACCESS_ADDR, vmx_pages->apic_access_gpa); in l1_guest_code() 62 vmwrite(APIC_ACCESS_ADDR, high_gpa); in l1_guest_code()
|
D | vmx_nested_tsc_scaling_test.c | 99 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code() 103 vmwrite(SECONDARY_VM_EXEC_CONTROL, control); in l1_guest_code() 105 vmwrite(TSC_OFFSET, TSC_OFFSET_L2); in l1_guest_code() 106 vmwrite(TSC_MULTIPLIER, TSC_MULTIPLIER_L2); in l1_guest_code() 107 vmwrite(TSC_MULTIPLIER_HIGH, TSC_MULTIPLIER_L2 >> 32); in l1_guest_code()
|
D | vmx_tsc_adjust_test.c | 94 vmwrite(CPU_BASED_VM_EXEC_CONTROL, control); in l1_guest_code() 95 vmwrite(TSC_OFFSET, TSC_OFFSET_VALUE); in l1_guest_code() 99 vmwrite(GUEST_CR3, -1ull); in l1_guest_code() 104 vmwrite(GUEST_CR3, save_cr3); in l1_guest_code()
|
D | state_test.c | 65 GUEST_ASSERT(!vmwrite(GUEST_RIP, 0xc0fffee)); in vmx_l2_guest_code() 68 GUEST_ASSERT(!vmwrite(GUEST_RIP, 0xc0ffffee)); in vmx_l2_guest_code() 109 vmwrite(GUEST_RIP, vmreadz(GUEST_RIP) + 3); in vmx_l1_guest_code() 111 vmwrite(SECONDARY_VM_EXEC_CONTROL, SECONDARY_EXEC_SHADOW_VMCS); in vmx_l1_guest_code() 112 vmwrite(VMCS_LINK_POINTER, vmx_pages->shadow_vmcs_gpa); in vmx_l1_guest_code() 120 vmwrite(GUEST_RIP, 0xc0ffee); in vmx_l1_guest_code()
|
D | nested_exceptions_test.c | 115 GUEST_ASSERT(!vmwrite(GUEST_RIP, (u64)l2_code)); in vmx_run_l2() 136 GUEST_ASSERT_EQ(vmwrite(GUEST_IDTR_LIMIT, 0), 0); in l1_vmx_code() 143 GUEST_ASSERT_EQ(vmwrite(EXCEPTION_BITMAP, INTERCEPT_SS_GP_DF), 0); in l1_vmx_code() 147 GUEST_ASSERT_EQ(vmwrite(EXCEPTION_BITMAP, INTERCEPT_SS_DF), 0); in l1_vmx_code() 150 GUEST_ASSERT_EQ(vmwrite(EXCEPTION_BITMAP, INTERCEPT_SS), 0); in l1_vmx_code()
|
D | vmx_preemption_timer_test.c | 98 vmwrite(GUEST_RIP, vmreadz(GUEST_RIP) + vmreadz(VM_EXIT_INSTRUCTION_LEN)); in l1_guest_code() 103 GUEST_ASSERT(!vmwrite(PIN_BASED_VM_EXEC_CONTROL, in l1_guest_code() 107 GUEST_ASSERT(!vmwrite(VMX_PREEMPTION_TIMER_VALUE, in l1_guest_code()
|
D | hyperv_evmcs.c | 113 vmwrite(PIN_BASED_VM_EXEC_CONTROL, vmreadz(PIN_BASED_VM_EXEC_CONTROL) | in guest_code() 142 vmwrite(CPU_BASED_VM_EXEC_CONTROL, vmreadz(CPU_BASED_VM_EXEC_CONTROL) | in guest_code()
|
/linux-6.12.1/tools/testing/selftests/kvm/include/x86_64/ |
D | vmx.h | 480 static inline int vmwrite(uint64_t encoding, uint64_t value) in vmwrite() function 523 void *vmwrite; member
|
/linux-6.12.1/arch/x86/kvm/vmx/ |
D | vmx_ops.h | 225 vmx_asm2(vmwrite, "r"(field), "rm"(value), field, value); in __vmcs_writel()
|