Lines Matching refs:vmcs
468 noinline void vmclear_error(struct vmcs *vmcs, u64 phys_addr) in vmclear_error() argument
471 vmcs, phys_addr, vmcs_read32(VM_INSTRUCTION_ERROR)); in vmclear_error()
474 noinline void vmptrld_error(struct vmcs *vmcs, u64 phys_addr) in vmptrld_error() argument
477 vmcs, phys_addr, vmcs_read32(VM_INSTRUCTION_ERROR)); in vmptrld_error()
492 static DEFINE_PER_CPU(struct vmcs *, vmxarea);
493 DEFINE_PER_CPU(struct vmcs *, current_vmcs);
545 evmcs = (struct hv_enlightened_vmcs *)to_vmx(vcpu)->loaded_vmcs->vmcs; in hv_enable_l2_tlb_flush()
774 vmcs_clear(v->vmcs); in vmx_emergency_disable_virtualization_cpu()
786 if (per_cpu(current_vmcs, cpu) == loaded_vmcs->vmcs) in __loaded_vmcs_clear()
789 vmcs_clear(loaded_vmcs->vmcs); in __loaded_vmcs_clear()
1450 struct vmcs *prev; in vmx_vcpu_load_vmcs()
1470 if (prev != vmx->loaded_vmcs->vmcs) { in vmx_vcpu_load_vmcs()
1471 per_cpu(current_vmcs, cpu) = vmx->loaded_vmcs->vmcs; in vmx_vcpu_load_vmcs()
1472 vmcs_load(vmx->loaded_vmcs->vmcs); in vmx_vcpu_load_vmcs()
1481 if (!buddy || WARN_ON_ONCE(buddy->vmcs != prev)) in vmx_vcpu_load_vmcs()
2894 struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags) in alloc_vmcs_cpu()
2898 struct vmcs *vmcs; in alloc_vmcs_cpu() local
2903 vmcs = page_address(pages); in alloc_vmcs_cpu()
2904 memset(vmcs, 0, vmx_basic_vmcs_size(vmcs_config.basic)); in alloc_vmcs_cpu()
2908 vmcs->hdr.revision_id = KVM_EVMCS_VERSION; in alloc_vmcs_cpu()
2910 vmcs->hdr.revision_id = vmx_basic_vmcs_revision_id(vmcs_config.basic); in alloc_vmcs_cpu()
2913 vmcs->hdr.shadow_vmcs = 1; in alloc_vmcs_cpu()
2914 return vmcs; in alloc_vmcs_cpu()
2917 void free_vmcs(struct vmcs *vmcs) in free_vmcs() argument
2919 free_page((unsigned long)vmcs); in free_vmcs()
2927 if (!loaded_vmcs->vmcs) in free_loaded_vmcs()
2930 free_vmcs(loaded_vmcs->vmcs); in free_loaded_vmcs()
2931 loaded_vmcs->vmcs = NULL; in free_loaded_vmcs()
2939 loaded_vmcs->vmcs = alloc_vmcs(false); in alloc_loaded_vmcs()
2940 if (!loaded_vmcs->vmcs) in alloc_loaded_vmcs()
2943 vmcs_clear(loaded_vmcs->vmcs); in alloc_loaded_vmcs()
2984 struct vmcs *vmcs; in alloc_kvm_area() local
2986 vmcs = alloc_vmcs_cpu(false, cpu, GFP_KERNEL); in alloc_kvm_area()
2987 if (!vmcs) { in alloc_kvm_area()
3003 vmcs->hdr.revision_id = vmx_basic_vmcs_revision_id(vmcs_config.basic); in alloc_kvm_area()
3005 per_cpu(vmxarea, cpu) = vmcs; in alloc_kvm_area()
3982 struct hv_enlightened_vmcs *evmcs = (void *)vmx->vmcs01.vmcs; in vmx_msr_bitmap_l01_changed()
6285 vmx->loaded_vmcs->vmcs, vcpu->arch.last_vmentry_cpu); in dump_vmcs()
7557 struct hv_enlightened_vmcs *evmcs = (void *)vmx->vmcs01.vmcs; in vmx_vcpu_create()