Home
last modified time | relevance | path

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

12

/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dvmx.c31 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx() local
34 vmx->vmxon = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
35 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
36 vmx->vmxon_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
39 vmx->vmcs = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
40 vmx->vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
41 vmx->vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
44 vmx->msr = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
45 vmx->msr_hva = addr_gva2hva(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
46 vmx->msr_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->msr); in vcpu_alloc_vmx()
[all …]
/Linux-v4.19/arch/x86/kvm/
Dvmx.c1280 static void copy_shadow_to_vmcs12(struct vcpu_vmx *vmx);
2070 static int __find_msr_index(struct vcpu_vmx *vmx, u32 msr) in __find_msr_index() argument
2074 for (i = 0; i < vmx->nmsrs; ++i) in __find_msr_index()
2075 if (vmx_msr_index[vmx->guest_msrs[i].index] == msr) in __find_msr_index()
2108 static struct shared_msr_entry *find_msr_entry(struct vcpu_vmx *vmx, u32 msr) in find_msr_entry() argument
2112 i = __find_msr_index(vmx, msr); in find_msr_entry()
2114 return &vmx->guest_msrs[i]; in find_msr_entry()
2444 static inline void vm_entry_controls_reset_shadow(struct vcpu_vmx *vmx) in vm_entry_controls_reset_shadow() argument
2446 vmx->vm_entry_controls_shadow = vmcs_read32(VM_ENTRY_CONTROLS); in vm_entry_controls_reset_shadow()
2449 static inline void vm_entry_controls_init(struct vcpu_vmx *vmx, u32 val) in vm_entry_controls_init() argument
[all …]
DMakefile19 kvm-intel-y += vmx.o pmu_intel.o
/Linux-v4.19/tools/testing/selftests/powerpc/ptrace/
Dptrace-vsx.h35 int validate_vmx(unsigned long vmx[][2], unsigned long *load) in validate_vmx()
41 if ((vmx[i][0] != load[64 + 2 * i]) || in validate_vmx()
42 (vmx[i][1] != load[65 + 2 * i])) { in validate_vmx()
44 i, vmx[i][0], 64 + 2 * i, in validate_vmx()
47 i, vmx[i][1], 65 + 2 * i, in validate_vmx()
55 if ((vmx[i][0] != load[65 + 2 * i]) || in validate_vmx()
56 (vmx[i][1] != load[64 + 2 * i])) { in validate_vmx()
58 i, vmx[i][0], 65 + 2 * i, in validate_vmx()
61 i, vmx[i][1], 64 + 2 * i, in validate_vmx()
113 unsigned long vmx[][2]) in load_vsx_vmx()
[all …]
Dptrace-tm-vsx.c92 unsigned long vmx[VMX_MAX + 2][2]; in trace_tm_vsx() local
97 FAIL_IF(show_vmx(child, vmx)); in trace_tm_vsx()
98 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_vsx()
101 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_vsx()
102 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_vsx()
104 memset(vmx, 0, sizeof(vmx)); in trace_tm_vsx()
106 load_vsx_vmx(fp_load_ckpt_new, vsx, vmx); in trace_tm_vsx()
109 FAIL_IF(write_vmx_ckpt(child, vmx)); in trace_tm_vsx()
Dptrace-tm-spd-vsx.c104 unsigned long vmx[VMX_MAX + 2][2]; in trace_tm_spd_vsx() local
109 FAIL_IF(show_vmx(child, vmx)); in trace_tm_spd_vsx()
110 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_tm_spd_vsx()
113 FAIL_IF(show_vmx_ckpt(child, vmx)); in trace_tm_spd_vsx()
114 FAIL_IF(validate_vmx(vmx, fp_load_ckpt)); in trace_tm_spd_vsx()
117 memset(vmx, 0, sizeof(vmx)); in trace_tm_spd_vsx()
119 load_vsx_vmx(fp_load_ckpt_new, vsx, vmx); in trace_tm_spd_vsx()
122 FAIL_IF(write_vmx_ckpt(child, vmx)); in trace_tm_spd_vsx()
Dptrace-vsx.c44 unsigned long vmx[VMX_MAX + 2][2]; in trace_vsx() local
49 FAIL_IF(show_vmx(child, vmx)); in trace_vsx()
50 FAIL_IF(validate_vmx(vmx, fp_load)); in trace_vsx()
53 memset(vmx, 0, sizeof(vmx)); in trace_vsx()
54 load_vsx_vmx(fp_load_new, vsx, vmx); in trace_vsx()
57 FAIL_IF(write_vmx(child, vmx)); in trace_vsx()
Dptrace.h533 int show_vmx(pid_t child, unsigned long vmx[][2]) in show_vmx()
537 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx); in show_vmx()
545 int show_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in show_vmx_ckpt()
558 memcpy(vmx, regs, sizeof(regs)); in show_vmx_ckpt()
563 int write_vmx(pid_t child, unsigned long vmx[][2]) in write_vmx()
567 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx); in write_vmx()
575 int write_vmx_ckpt(pid_t child, unsigned long vmx[][2]) in write_vmx_ckpt()
581 memcpy(regs, vmx, sizeof(regs)); in write_vmx_ckpt()
/Linux-v4.19/drivers/crypto/vmx/
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
DKconfig9 choose 'M' here, this module will be called vmx-crypto.
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
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 \
19 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
D.gitignore12 tm-signal-context-chk-vmx
14 tm-vmx-unavail
/Linux-v4.19/Documentation/virtual/kvm/
Dnested-vmx.txt46 -cpu qemu64,+vmx (add just the vmx feature to a named CPU type)
66 internals of this structure; This is struct vmcs12 from arch/x86/kvm/vmx.c.
75 VMCS12_REVISION (from vmx.c) should be changed if struct vmcs12 or its inner
D00-INDEX24 nested-vmx.txt
/Linux-v4.19/tools/testing/selftests/kvm/
DMakefile7 LIBKVM_x86_64 = lib/x86.c lib/vmx.c
/Linux-v4.19/arch/powerpc/lib/
DMakefile32 obj64-$(CONFIG_ALTIVEC) += vmx-helper.o
/Linux-v4.19/tools/testing/selftests/kvm/include/
Dvmx.h549 bool prepare_for_vmx_operation(struct vmx_pages *vmx);
550 void prepare_vmcs(struct vmx_pages *vmx, void *guest_rip, void *guest_rsp);
/Linux-v4.19/arch/x86/events/intel/
Dpt.h112 bool vmx; member
Dpt.c226 pt_pmu.vmx = true; in pt_pmu_hw_init()
1308 if (pt_pmu.vmx) in intel_pt_handle_vmx()
/Linux-v4.19/drivers/crypto/
DMakefile45 obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
DKconfig605 source "drivers/crypto/vmx/Kconfig"
/Linux-v4.19/arch/x86/include/uapi/asm/
Dkvm.h410 struct kvm_vmx_nested_state vmx; member
/Linux-v4.19/tools/arch/x86/include/uapi/asm/
Dkvm.h410 struct kvm_vmx_nested_state vmx; member
/Linux-v4.19/arch/s390/tools/
Dopcodes.txt997 e7ff vmx VRR_VVV0U
/Linux-v4.19/
DMAINTAINERS7028 F: drivers/crypto/vmx/Makefile
7029 F: drivers/crypto/vmx/Kconfig
7030 F: drivers/crypto/vmx/vmx.c
7031 F: drivers/crypto/vmx/aes*
7032 F: drivers/crypto/vmx/ghash*
7033 F: drivers/crypto/vmx/ppc-xlate.pl
8425 F: drivers/crypto/vmx/

12