Searched refs:vmcs (Results  1 – 8 of 8) sorted by relevance
| /Linux-v5.10/arch/x86/kvm/vmx/ | 
| D | vmx_ops.h | 19 void vmclear_error(struct vmcs *vmcs, u64 phys_addr); 20 void vmptrld_error(struct vmcs *vmcs, u64 phys_addr); 238 static inline void vmcs_clear(struct vmcs *vmcs)  in vmcs_clear()  argument 240 	u64 phys_addr = __pa(vmcs);  in vmcs_clear() 242 	vmx_asm1(vmclear, "m"(phys_addr), vmcs, phys_addr);  in vmcs_clear() 245 static inline void vmcs_load(struct vmcs *vmcs)  in vmcs_load()  argument 247 	u64 phys_addr = __pa(vmcs);  in vmcs_load() 252 	vmx_asm1(vmptrld, "m"(phys_addr), vmcs, phys_addr);  in vmcs_load()
  | 
| D | vmcs.h | 19 struct vmcs {  struct 25 DECLARE_PER_CPU(struct vmcs *, current_vmcs);  argument 59 	struct vmcs *vmcs;  member 60 	struct vmcs *shadow_vmcs;
  | 
| D | vmx.h | 447 struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags); 448 void free_vmcs(struct vmcs *vmcs); 453 static inline struct vmcs *alloc_vmcs(bool shadow)  in alloc_vmcs()
  | 
| D | vmx.c | 389 noinline void vmclear_error(struct vmcs *vmcs, u64 phys_addr)  in vmclear_error()  argument 391 	vmx_insn_failed("kvm: vmclear failed: %p/%llx\n", vmcs, phys_addr);  in vmclear_error() 394 noinline void vmptrld_error(struct vmcs *vmcs, u64 phys_addr)  in vmptrld_error()  argument 396 	vmx_insn_failed("kvm: vmptrld failed: %p/%llx\n", vmcs, phys_addr);  in vmptrld_error() 411 static DEFINE_PER_CPU(struct vmcs *, vmxarea); 412 DEFINE_PER_CPU(struct vmcs *, current_vmcs); 567 	evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs;  in hv_enable_direct_tlbflush() 717 		vmcs_clear(v->vmcs);  in crash_vmclear_local_loaded_vmcss() 728 	if (per_cpu(current_vmcs, cpu) == loaded_vmcs->vmcs)  in __loaded_vmcs_clear() 731 	vmcs_clear(loaded_vmcs->vmcs);  in __loaded_vmcs_clear() [all …] 
 | 
| D | nested.c | 255 static void vmx_switch_vmcs(struct kvm_vcpu *vcpu, struct loaded_vmcs *vmcs)  in vmx_switch_vmcs()  argument 261 	if (WARN_ON_ONCE(vmx->loaded_vmcs == vmcs))  in vmx_switch_vmcs() 266 	vmx->loaded_vmcs = vmcs;  in vmx_switch_vmcs() 1543 	struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs;  in copy_shadow_to_vmcs12() 1563 	vmcs_load(vmx->loaded_vmcs->vmcs);  in copy_shadow_to_vmcs12() 1578 	struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs;  in copy_vmcs12_to_shadow() 1599 	vmcs_load(vmx->loaded_vmcs->vmcs);  in copy_vmcs12_to_shadow() 4727 static struct vmcs *alloc_shadow_vmcs(struct kvm_vcpu *vcpu)  in alloc_shadow_vmcs() 5150 			vmcs_load(vmx->loaded_vmcs->vmcs);  in handle_vmwrite()
  | 
| /Linux-v5.10/tools/testing/selftests/kvm/lib/x86_64/ | 
| D | vmx.c | 89 	vmx->vmcs = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0);  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() 181 		*(uint32_t *)(vmx->vmcs) = vmcs_revision();  in load_vmcs()
  | 
| /Linux-v5.10/tools/testing/selftests/kvm/include/x86_64/ | 
| D | vmx.h | 547 	void *vmcs;  member
  | 
| /Linux-v5.10/tools/testing/selftests/kvm/include/ | 
| D | evmcs.h | 241 static inline int evmcs_vmptrld(uint64_t vmcs_pa, void *vmcs)  in evmcs_vmptrld()  argument 246 	current_evmcs = vmcs;  in evmcs_vmptrld()
  |