Home
last modified time | relevance | path

Searched refs:vmx (Results 1 – 25 of 38) sorted by relevance

12

/linux/tools/testing/selftests/kvm/lib/x86_64/
A Dvmx.c85 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
86 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
90 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
91 vmx->vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
95 vmx->msr_hva = addr_gva2hva(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
96 vmx->msr_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
106 vmx->vmread_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx()
107 vmx->vmread_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmread); in vcpu_alloc_vmx()
128 return vmx; in vcpu_alloc_vmx()
532 vmx->eptp_hva = addr_gva2hva(vm, (uintptr_t)vmx->eptp); in prepare_eptp()
[all …]
/linux/arch/x86/kvm/vmx/
A Dvmx.c1669 vmx_setup_uret_msr(vmx, MSR_EFER, update_transition_efer(vmx)); in vmx_setup_uret_msrs()
4094 pin_controls_set(vmx, vmx_pin_based_exec_ctrl(vmx)); in vmx_refresh_apicv_exec_ctrl()
4293 pin_controls_set(vmx, vmx_pin_based_exec_ctrl(vmx)); in init_vmcs()
4295 exec_controls_set(vmx, vmx_exec_control(vmx)); in init_vmcs()
4364 memset(&vmx->pt_desc, 0, sizeof(vmx->pt_desc)); in init_vmcs()
4390 init_vmcs(vmx); in __vmx_vcpu_reset()
5358 if (vmx->emulation_required && !vmx->rmode.vm86_active && in handle_invalid_guest_state()
6339 memset(vmx->pi_desc.pir, 0, sizeof(vmx->pi_desc.pir)); in vmx_apicv_post_state_restore()
6631 vmx->fail = 0; in vmx_vcpu_run()
6887 vmx->loaded_vmcs = &vmx->vmcs01; in vmx_create_vcpu()
[all …]
A Dnested.c283 if (WARN_ON_ONCE(vmx->loaded_vmcs != &vmx->vmcs01)) in free_nested()
286 if (!vmx->nested.vmxon && !vmx->nested.smm.vmxon) in free_nested()
1973 vmx->nested.hv_evmcs = vmx->nested.hv_evmcs_map.hva; in nested_vmx_handle_enlightened_vmptrld()
3380 prepare_vmcs02_early(vmx, &vmx->vmcs01, vmcs12); in nested_vmx_enter_non_root_mode()
4065 WARN_ON_ONCE(vmx->loaded_vmcs != &vmx->vmcs01); in copy_vmcs02_to_vmcs12_rare()
4068 vmx->loaded_vmcs = &vmx->nested.vmcs02; in copy_vmcs02_to_vmcs12_rare()
4073 vmx->loaded_vmcs = &vmx->vmcs01; in copy_vmcs02_to_vmcs12_rare()
6117 (vmx->nested.vmxon || vmx->nested.smm.vmxon)) { in vmx_get_nested_state()
6118 kvm_state.hdr.vmx.vmxon_pa = vmx->nested.vmxon_ptr; in vmx_get_nested_state()
6302 vmx->nested.vmxon_ptr = kvm_state->hdr.vmx.vmxon_pa; in vmx_set_nested_state()
[all …]
A Dvmx.h363 void vmx_set_constant_host_state(struct vcpu_vmx *vmx);
376 void set_cr4_guest_host_mask(struct vcpu_vmx *vmx);
451 vmx->loaded_vmcs->controls_shadow.lname = val; \
464 lname##_controls_set(vmx, lname##_controls_get(vmx) | val); \
468 lname##_controls_set(vmx, lname##_controls_get(vmx) & ~val); \
502 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_exit_qual() local
508 return vmx->exit_qualification; in vmx_get_exit_qual()
513 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_get_intr_info() local
517 vmx->exit_intr_info = vmcs_read32(VM_EXIT_INTR_INFO); in vmx_get_intr_info()
519 return vmx->exit_intr_info; in vmx_get_intr_info()
[all …]
A Dnested.h57 struct vcpu_vmx *vmx = to_vmx(vcpu); in vmx_has_valid_vmcs12() local
60 return vmx->nested.current_vmptr != -1ull || in vmx_has_valid_vmcs12()
61 vmx->nested.hv_evmcs_vmptr != EVMPTR_INVALID; in vmx_has_valid_vmcs12()
66 struct vcpu_vmx *vmx = to_vmx(vcpu); in nested_get_vpid02() local
68 return vmx->nested.vpid02 ? vmx->nested.vpid02 : vmx->vpid; in nested_get_vpid02()
A Dsgx.c289 struct vcpu_vmx *vmx = to_vmx(vcpu); in handle_encls_einit() local
321 vmx->msr_ia32_sgxlepubkeyhash, &trapnr); in handle_encls_einit()
416 struct vcpu_vmx *vmx = to_vmx(vcpu); in vcpu_setup_sgx_lepubkeyhash() local
418 memcpy(vmx->msr_ia32_sgxlepubkeyhash, sgx_pubkey_hash, in vcpu_setup_sgx_lepubkeyhash()
/linux/tools/testing/selftests/kvm/x86_64/
A Dvmx_set_nested_state_test.c83 state->hdr.vmx.vmxon_pa = 0x1000; in set_default_vmx_state()
85 state->hdr.vmx.smm.flags = 0; in set_default_vmx_state()
114 state->hdr.vmx.vmxon_pa = -1ull; in test_vmx_nested_state()
146 state->hdr.vmx.smm.flags = 1; in test_vmx_nested_state()
151 state->hdr.vmx.flags = ~0; in test_vmx_nested_state()
162 state->hdr.vmx.vmxon_pa = 1; in test_vmx_nested_state()
203 state->hdr.vmx.vmcs12_pa = -1; in test_vmx_nested_state()
218 state->hdr.vmx.vmcs12_pa = -1; in test_vmx_nested_state()
219 state->hdr.vmx.flags = ~0; in test_vmx_nested_state()
224 state->hdr.vmx.vmxon_pa = 0; in test_vmx_nested_state()
[all …]
A Dvmx_dirty_log_test.c50 void l1_guest_code(struct vmx_pages *vmx) in l1_guest_code() argument
55 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code()
56 GUEST_ASSERT(prepare_for_vmx_operation(vmx)); in l1_guest_code()
57 GUEST_ASSERT(load_vmcs(vmx)); in l1_guest_code()
59 prepare_vmcs(vmx, l2_guest_code, in l1_guest_code()
72 struct vmx_pages *vmx; in main() local
85 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
109 prepare_eptp(vmx, vm, 0); in main()
110 nested_map_memslot(vmx, vm, 0); in main()
111 nested_map(vmx, vm, NESTED_TEST_MEM1, GUEST_TEST_MEM, 4096); in main()
[all …]
A Dvmx_apic_access_test.c84 struct vmx_pages *vmx; in main() local
98 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
99 prepare_virtualize_apic_accesses(vmx, vm); in main()
/linux/tools/testing/selftests/powerpc/ptrace/
A Dptrace-vsx.h37 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()
117 vmx[i][0] = load[64 + 2 * i]; in load_vsx_vmx()
[all …]
A Dptrace-tm-spd-vsx.c99 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()
A Dptrace-tm-vsx.c87 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()
A Dptrace-vsx.c40 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()
A Dptrace.h529 int show_vmx(pid_t child, unsigned long vmx[][2]) in show_vmx()
533 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx); in show_vmx()
541 int show_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in show_vmx_ckpt()
554 memcpy(vmx, regs, sizeof(regs)); in show_vmx_ckpt()
559 int write_vmx(pid_t child, unsigned long vmx[][2]) in write_vmx()
563 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx); in write_vmx()
571 int write_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in write_vmx_ckpt()
577 memcpy(regs, vmx, sizeof(regs)); in write_vmx_ckpt()
/linux/arch/x86/kvm/
A DMakefile29 kvm-intel-y += vmx/vmx.o vmx/vmenter.o vmx/pmu_intel.o vmx/vmcs12.o \
30 vmx/evmcs.o vmx/nested.o vmx/posted_intr.o
31 kvm-intel-$(CONFIG_X86_SGX_KVM) += vmx/sgx.o
/linux/tools/testing/selftests/kvm/include/x86_64/
A Dvmx.h603 bool prepare_for_vmx_operation(struct vmx_pages *vmx);
604 void prepare_vmcs(struct vmx_pages *vmx, void *guest_rip, void *guest_rsp);
605 bool load_vmcs(struct vmx_pages *vmx);
610 void nested_pg_map(struct vmx_pages *vmx, struct kvm_vm *vm,
612 void nested_map(struct vmx_pages *vmx, struct kvm_vm *vm,
614 void nested_map_memslot(struct vmx_pages *vmx, struct kvm_vm *vm,
616 void prepare_eptp(struct vmx_pages *vmx, struct kvm_vm *vm,
618 void prepare_virtualize_apic_accesses(struct vmx_pages *vmx, struct kvm_vm *vm);
/linux/drivers/crypto/vmx/
A DMakefile2 obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o
3 vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o
A DKconfig10 choose 'M' here, this module will be called vmx-crypto.
/linux/tools/testing/selftests/powerpc/tm/
A DMakefile3 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 \
22 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
A D.gitignore13 tm-signal-context-chk-vmx
18 tm-vmx-unavail
/linux/Documentation/virt/kvm/
A Dnested-vmx.rst51 - 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
A Dindex.rst18 nested-vmx
/linux/arch/x86/events/intel/
A Dpt.h46 bool vmx; member
/linux/arch/x86/include/uapi/asm/
A Dkvm.h476 struct kvm_vmx_nested_state_hdr vmx; member
489 struct kvm_vmx_nested_state_data vmx[0]; member
/linux/tools/arch/x86/include/uapi/asm/
A Dkvm.h476 struct kvm_vmx_nested_state_hdr vmx; member
489 struct kvm_vmx_nested_state_data vmx[0]; member

Completed in 788 milliseconds

12