| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | vmx.c | 11 #include "vmx.h" 85 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx() local 88 vmx->vmxon = (void *)vm_alloc_page(vm); in vcpu_alloc_vmx() 89 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx() 90 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx() 93 vmx->vmcs = (void *)vm_alloc_page(vm); in vcpu_alloc_vmx() 94 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx in vcpu_alloc_vmx() 126 prepare_for_vmx_operation(struct vmx_pages * vmx) prepare_for_vmx_operation() argument 170 load_vmcs(struct vmx_pages * vmx) load_vmcs() argument 201 init_vmcs_control_fields(struct vmx_pages * vmx) init_vmcs_control_fields() argument 369 prepare_vmcs(struct vmx_pages * vmx,void * guest_rip,void * guest_rsp) prepare_vmcs() argument 391 prepare_virtualize_apic_accesses(struct vmx_pages * vmx,struct kvm_vm * vm) prepare_virtualize_apic_accesses() argument [all...] |
| H A D | memstress.c | 35 static void l1_vmx_code(struct vmx_pages *vmx, u64 vcpu_id) in l1_vmx_code() argument 40 GUEST_ASSERT(vmx->vmcs_gpa); in l1_vmx_code() 41 GUEST_ASSERT(prepare_for_vmx_operation(vmx)); in l1_vmx_code() 42 GUEST_ASSERT(load_vmcs(vmx)); in l1_vmx_code() 47 prepare_vmcs(vmx, memstress_l2_guest_entry, rsp); in l1_vmx_code()
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-vsx.h | 31 int validate_vmx(unsigned long vmx[][2], unsigned long *load) in validate_vmx() 37 if ((vmx[i][0] != load[64 + 2 * i]) || in validate_vmx() 38 (vmx[i][1] != load[65 + 2 * i])) { in validate_vmx() 40 i, vmx[i][0], 64 + 2 * i, in validate_vmx() 43 i, vmx[i][1], 65 + 2 * i, in validate_vmx() 51 if ((vmx[i][0] != load[65 + 2 * i]) || in validate_vmx() 52 (vmx[i][1] != load[64 + 2 * i])) { in validate_vmx() 54 i, vmx[i][0], 65 + 2 * i, in validate_vmx() 57 i, vmx[i][1], 64 + 2 * i, in validate_vmx() 109 unsigned long vmx[][2]) in load_vsx_vmx() [all …]
|
| H A D | ptrace-tm-vsx.c | 87 unsigned long vmx[VMX_MAX + 2][2]; in trace_tm_vsx() local 92 FAIL_IF(show_vmx(child, vmx)); in trace_tm_vsx() 93 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_vsx() 96 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_vsx() 97 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_vsx() 99 memset(vmx, 0, sizeof(vmx)); in trace_tm_vsx() 101 load_vsx_vmx(fp_load_ckpt_new, vsx, vmx); in trace_tm_vsx() 104 FAIL_IF(write_vmx_ckpt(child, vmx)); in trace_tm_vsx()
|
| H A D | ptrace-tm-spd-vsx.c | 99 unsigned long vmx[VMX_MAX + 2][2]; in trace_tm_spd_vsx() local 104 FAIL_IF(show_vmx(child, vmx)); in trace_tm_spd_vsx() 105 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_spd_vsx() 108 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_spd_vsx() 109 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_spd_vsx() 112 memset(vmx, 0, sizeof(vmx)); in trace_tm_spd_vsx() 114 load_vsx_vmx(fp_load_ckpt_new, vsx, vmx); in trace_tm_spd_vsx() 117 FAIL_IF(write_vmx_ckpt(child, vmx)); in trace_tm_spd_vsx()
|
| H A D | ptrace-vsx.c | 40 unsigned long vmx[VMX_MAX + 2][2]; in trace_vsx() local 45 FAIL_IF(show_vmx(child, vmx)); in trace_vsx() 46 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_vsx() 49 memset(vmx, 0, sizeof(vmx)); in trace_vsx() 50 load_vsx_vmx(fp_load_new, vsx, vmx); in trace_vsx() 53 FAIL_IF(write_vmx(child, vmx)); in trace_vsx()
|
| H A D | ptrace.h | 597 int show_vmx(pid_t child, unsigned long vmx[][2]) in show_vmx() 601 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx); in show_vmx() 609 int show_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in show_vmx_ckpt() 622 memcpy(vmx, regs, sizeof(regs)); in show_vmx_ckpt() 627 int write_vmx(pid_t child, unsigned long vmx[][2]) in write_vmx() 631 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx); in write_vmx() 639 int write_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in write_vmx_ckpt() 645 memcpy(regs, vmx, sizeof(regs)); in write_vmx_ckpt()
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | vmx_dirty_log_test.c | |
| H A D | nested_set_state_test.c | 81 state->hdr.vmx.vmxon_pa = 0x1000; in set_default_vmx_state() 82 state->hdr.vmx.vmcs12_pa = 0x2000; in set_default_vmx_state() 83 state->hdr.vmx.smm.flags = 0; in set_default_vmx_state() 112 state->hdr.vmx.vmxon_pa = -1ull; in test_vmx_nested_state() 115 state->hdr.vmx.vmcs12_pa = -1ull; in test_vmx_nested_state() 132 state->hdr.vmx.vmxon_pa = -1ull; in test_vmx_nested_state() 133 state->hdr.vmx.vmcs12_pa = -1ull; in test_vmx_nested_state() 148 state->hdr.vmx.smm.flags = 1; in test_vmx_nested_state() 153 state->hdr.vmx.flags = ~0; in test_vmx_nested_state() 158 state->hdr.vmx.vmxon_pa = -1ull; in test_vmx_nested_state() [all …]
|
| H A D | triple_fault_event_test.c | 27 void l1_guest_code_vmx(struct vmx_pages *vmx) in l1_guest_code_vmx() argument 30 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code_vmx() 31 GUEST_ASSERT(prepare_for_vmx_operation(vmx)); in l1_guest_code_vmx() 32 GUEST_ASSERT(load_vmcs(vmx)); in l1_guest_code_vmx() 34 prepare_vmcs(vmx, l2_guest_code, in l1_guest_code_vmx()
|
| H A D | kvm_buslock_test.c | 46 static void l1_vmx_code(struct vmx_pages *vmx) in l1_vmx_code() argument 50 GUEST_ASSERT_EQ(prepare_for_vmx_operation(vmx), true); in l1_vmx_code() 51 GUEST_ASSERT_EQ(load_vmcs(vmx), true); in l1_vmx_code() 53 prepare_vmcs(vmx, NULL, &l2_guest_stack[L2_GUEST_STACK_SIZE]); in l1_vmx_code()
|
| H A D | nested_dirty_log_test.c | 93 void l1_vmx_code(struct vmx_pages *vmx) in l1_vmx_code() argument 98 GUEST_ASSERT(vmx->vmcs_gpa); in l1_vmx_code() 99 GUEST_ASSERT(prepare_for_vmx_operation(vmx)); in l1_vmx_code() 100 GUEST_ASSERT(load_vmcs(vmx)); in l1_vmx_code() 102 if (vmx->eptp_gpa) in l1_vmx_code() 107 prepare_vmcs(vmx, l2_rip, &l2_guest_stack[L2_GUEST_STACK_SIZE]); in l1_vmx_code()
|
| H A D | vmx_apic_access_test.c | 77 struct vmx_pages *vmx; in main() local 89 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main() 90 prepare_virtualize_apic_accesses(vmx, vm); in main()
|
| H A D | aperfmperf_test.c | 74 static void l1_vmx_code(struct vmx_pages *vmx) in l1_vmx_code() argument 78 GUEST_ASSERT_EQ(prepare_for_vmx_operation(vmx), true); in l1_vmx_code() 79 GUEST_ASSERT_EQ(load_vmcs(vmx), true); in l1_vmx_code() 81 prepare_vmcs(vmx, NULL, &l2_guest_stack[L2_GUEST_STACK_SIZE]); in l1_vmx_code()
|
| H A D | vmx_apicv_updates_test.c | 114 struct vmx_pages *vmx; in main() local 123 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main() 124 prepare_virtualize_apic_accesses(vmx, vm); in main()
|
| H A D | nested_exceptions_test.c | 129 static void l1_vmx_code(struct vmx_pages *vmx) in l1_vmx_code() argument 133 GUEST_ASSERT_EQ(prepare_for_vmx_operation(vmx), true); in l1_vmx_code() 135 GUEST_ASSERT_EQ(load_vmcs(vmx), true); in l1_vmx_code() 137 prepare_vmcs(vmx, NULL, &l2_guest_stack[L2_GUEST_STACK_SIZE]); in l1_vmx_code()
|
| /linux/tools/testing/selftests/powerpc/tm/ |
| H A D | Makefile | 3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx 6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ 23 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
|
| H A D | .gitignore | 13 tm-signal-context-chk-vmx 18 tm-vmx-unavail
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | vmx.h | 554 bool prepare_for_vmx_operation(struct vmx_pages *vmx); 555 void prepare_vmcs(struct vmx_pages *vmx, void *guest_rip, void *guest_rsp); 556 bool load_vmcs(struct vmx_pages *vmx); 562 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm);
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | index.rst | 17 nested-vmx
|
| H A D | nested-vmx.rst | 51 - cpu qemu64,+vmx (add just the vmx feature to a named CPU type) 71 internals of this structure; This is struct vmcs12 from arch/x86/kvm/vmx.c. 80 VMCS12_REVISION (from vmx.c) should be changed if struct vmcs12 or its inner
|
| H A D | running-nested-guests.rst | 156 $ qemu-kvm -cpu Haswell-noTSX-IBRS,vmx=on
|
| /linux/lib/zstd/common/ |
| H A D | cpu.h | 104 C(vmx, 5)
|
| /linux/tools/arch/x86/include/uapi/asm/ |
| H A D | kvm.h | 544 struct kvm_vmx_nested_state_hdr vmx; member 557 __DECLARE_FLEX_ARRAY(struct kvm_vmx_nested_state_data, vmx);
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | Makefile.kvm | 31 LIBKVM_x86 += lib/x86/vmx.c
|