Home
last modified time | relevance | path

Searched refs:vmcs (Results 1 – 14 of 14) sorted by relevance

/linux/arch/loongarch/kvm/
H A Dmain.c20 static struct kvm_context __percpu *vmcs; variable
211 context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu); in kvm_update_vpid()
243 context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu); in kvm_check_vpid()
289 context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu); in kvm_arch_dev_ioctl()
327 old = this_cpu_ptr(vcpu->kvm->arch.vmcs)->vmid_cache & ~vpid_mask; in kvm_arch_enable_virtualization_cpu()
342 kvm->arch.vmcs = vmcs; in kvm_arch_disable_virtualization_cpu()
394 this_cpu_ptr(vmcs)->last_vcpu = NULL; in kvm_loongarch_env_init()
415 vmcs = alloc_percpu(struct kvm_context); in kvm_loongarch_env_init()
416 if (!vmcs) { in kvm_loongarch_env_init()
[all...]
H A Dvcpu.c45 context = this_cpu_ptr(vcpu->kvm->arch.vmcs); in kvm_save_host_pmu()
60 context = this_cpu_ptr(vcpu->kvm->arch.vmcs); in kvm_restore_host_pmu()
1594 context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu); in kvm_arch_vcpu_destroy()
1616 context = per_cpu_ptr(vcpu->kvm->arch.vmcs, cpu); in _kvm_vcpu_load()
/linux/arch/x86/kvm/vmx/
H A Dvmx_ops.h15 void vmclear_error(struct vmcs *vmcs, u64 phys_addr);
16 void vmptrld_error(struct vmcs *vmcs, u64 phys_addr);
286 static inline void vmcs_clear(struct vmcs *vmcs) in vmcs_clear() argument
288 u64 phys_addr = __pa(vmcs); in vmcs_clear()
290 vmx_asm1(vmclear, "m"(phys_addr), vmcs, phys_addr); in vmcs_clear()
293 static inline void vmcs_load(struct vmcs *vmcs) in vmcs_load() argument
295 u64 phys_addr = __pa(vmcs); in vmcs_load()
300 vmx_asm1(vmptrld, "m"(phys_addr), vmcs, phys_addr); in vmcs_load()
H A Dvmx.h15 #include "vmcs.h"
105 * Indicates if the shadow vmcs or enlightened vmcs must be updated
546 static inline u##bits __##lname##_controls_get(struct loaded_vmcs *vmcs) \
548 return vmcs->controls_shadow.lname; \
640 struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags); in vmx_l1_guest_owned_cr0_bits()
641 void free_vmcs(struct vmcs *vmcs); in vmx_l1_guest_owned_cr0_bits()
645 static inline struct vmcs *alloc_vmcs(bool shadow) in vmx_l1_guest_owned_cr0_bits()
H A Dtdx.h182 TDX_BUILD_TDVPS_ACCESSORS(16, VMCS, vmcs);
183 TDX_BUILD_TDVPS_ACCESSORS(32, VMCS, vmcs);
184 TDX_BUILD_TDVPS_ACCESSORS(64, VMCS, vmcs);
H A Dvmx.c69 #include "vmcs.h"
571 noinline void vmclear_error(struct vmcs *vmcs, u64 phys_addr) in vmclear_error() argument
574 vmcs, phys_addr, vmcs_read32(VM_INSTRUCTION_ERROR)); in vmclear_error()
577 noinline void vmptrld_error(struct vmcs *vmcs, u64 phys_addr) in vmptrld_error() argument
580 vmcs, phys_addr, vmcs_read32(VM_INSTRUCTION_ERROR)); in vmptrld_error()
594 DEFINE_PER_CPU(struct vmcs *, current_vmcs);
646 evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs; in hv_enable_l2_tlb_flush()
807 vmcs_clear(v->vmcs); in vmx_emergency_disable_virtualization_cpu()
1591 vmx_switch_loaded_vmcs(struct kvm_vcpu * vcpu,struct loaded_vmcs * vmcs) vmx_switch_loaded_vmcs() argument
3046 struct vmcs *vmcs; alloc_vmcs_cpu() local
3065 free_vmcs(struct vmcs * vmcs) free_vmcs() argument
[all...]
H A Dnested.c298 static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs) in vmx_switch_vmcs() argument
304 if (WARN_ON_ONCE(vmx->loaded_vmcs == vmcs)) in vmx_switch_vmcs()
309 vmx->loaded_vmcs = vmcs; in vmx_switch_vmcs()
340 struct vmcs *shadow_vmcs; in free_nested()
384 * Ensure that the current vmcs of the logical processor is the
1703 struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs; in copy_shadow_to_vmcs12()
1723 vmcs_load(vmx->loaded_vmcs->vmcs); in copy_vmcs12_to_shadow()
1738 struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs; in copy_vmcs12_to_shadow()
1759 vmcs_load(vmx->loaded_vmcs->vmcs); in copy_enlightened_to_vmcs12()
2765 * L2 guest. L1 has a vmcs fo
[all...]
/linux/tools/testing/selftests/kvm/lib/x86/
H A Dvmx.c92 /* Setup of a region of guest memory for a vmcs. */ 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->vmcs); in vcpu_alloc_vmx()
95 vmx->vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->vmcs); in vcpu_alloc_vmx()
172 *(u32 *)(vmx->vmcs) = vmcs_revision(); in load_vmcs()
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c124 struct intel_pt_vmcs_info *(*findnew_vmcs_info)(void *data, uint64_t vmcs);
167 uint64_t vmcs; member
2320 bool tsc, pip, vmcs, tma, psbend;
2358 data->vmcs = true; in intel_pt_vm_psb_lookahead_cb()
2518 payload, decoder->packet.payload, vmcs_info->vmcs, in intel_pt_translate_vm_tsc()
2526 .vmcs = NO_VMCS, in intel_pt_translate_vm_tsc_offset()
2546 vmcs_info->vmcs, vmcs_info->tsc_offset);
2601 uint64_t vmcs; in intel_pt_vm_tm_corr_tsc()
2629 vmcs = data->vmcs in intel_pt_vm_tm_corr_tsc()
2318 bool tsc, pip, vmcs, tma, psbend; global() member
2599 uint64_t vmcs; intel_pt_vm_tm_corr_tsc() local
2752 uint64_t vmcs; intel_pt_vm_tm_corr_pebs_tsc() local
[all...]
H A Dintel-pt-decoder.h210 uint64_t vmcs; member
280 struct intel_pt_vmcs_info *(*findnew_vmcs_info)(void *data, uint64_t vmcs);
/linux/tools/perf/util/
H A Dintel-pt.c319 u64 vmcs, in intel_pt_findnew_vmcs() argument
330 if (v->vmcs == vmcs) in intel_pt_findnew_vmcs()
333 if (vmcs < v->vmcs) in intel_pt_findnew_vmcs()
341 v->vmcs = vmcs; in intel_pt_findnew_vmcs()
352 static struct intel_pt_vmcs_info *intel_pt_findnew_vmcs_info(void *data, uint64_t vmcs) in intel_pt_findnew_vmcs_info() argument
357 if (!vmcs && !pt->dflt_tsc_offset) in intel_pt_findnew_vmcs_info()
360 return intel_pt_findnew_vmcs(&pt->vmcs_info, vmcs, p in intel_pt_findnew_vmcs_info()
4302 u64 tsc_offset, vmcs; intel_pt_parse_vm_tm_corr_arg() local
[all...]
/linux/arch/loongarch/include/asm/
H A Dkvm_host.h141 struct kvm_context __percpu *vmcs;
136 struct kvm_context __percpu *vmcs; global() member
/linux/tools/testing/selftests/kvm/include/x86/
H A Dvmx.h449 void *vmcs;
505 void *vmcs; global() member
H A Devmcs.h248 static inline void evmcs_vmptrld(u64 vmcs_pa, void *vmcs) in evmcs_vmptrld() argument
253 current_evmcs = vmcs; in evmcs_vmptrld()