Lines Matching refs:vmcs
185 struct vmcs { struct
197 struct vmcs *vmcs; argument
410 struct vmcs *current_shadow_vmcs;
902 static DEFINE_PER_CPU(struct vmcs *, vmxarea);
903 static DEFINE_PER_CPU(struct vmcs *, current_vmcs);
1337 static void vmcs_clear(struct vmcs *vmcs) in vmcs_clear() argument
1339 u64 phys_addr = __pa(vmcs); in vmcs_clear()
1347 vmcs, phys_addr); in vmcs_clear()
1352 vmcs_clear(loaded_vmcs->vmcs); in loaded_vmcs_init()
1357 static void vmcs_load(struct vmcs *vmcs) in vmcs_load() argument
1359 u64 phys_addr = __pa(vmcs); in vmcs_load()
1367 vmcs, phys_addr); in vmcs_load()
1403 vmcs_clear(v->vmcs); in crash_vmclear_local_loaded_vmcss()
1417 if (per_cpu(current_vmcs, cpu) == loaded_vmcs->vmcs) in __loaded_vmcs_clear()
2124 if (per_cpu(current_vmcs, cpu) != vmx->loaded_vmcs->vmcs) { in vmx_vcpu_load()
2125 per_cpu(current_vmcs, cpu) = vmx->loaded_vmcs->vmcs; in vmx_vcpu_load()
2126 vmcs_load(vmx->loaded_vmcs->vmcs); in vmx_vcpu_load()
3434 static struct vmcs *alloc_vmcs_cpu(int cpu) in alloc_vmcs_cpu()
3438 struct vmcs *vmcs; in alloc_vmcs_cpu() local
3443 vmcs = page_address(pages); in alloc_vmcs_cpu()
3444 memset(vmcs, 0, vmcs_config.size); in alloc_vmcs_cpu()
3445 vmcs->revision_id = vmcs_config.revision_id; /* vmcs revision id */ in alloc_vmcs_cpu()
3446 return vmcs; in alloc_vmcs_cpu()
3449 static void free_vmcs(struct vmcs *vmcs) in free_vmcs() argument
3451 free_pages((unsigned long)vmcs, vmcs_config.order); in free_vmcs()
3459 if (!loaded_vmcs->vmcs) in free_loaded_vmcs()
3462 free_vmcs(loaded_vmcs->vmcs); in free_loaded_vmcs()
3463 loaded_vmcs->vmcs = NULL; in free_loaded_vmcs()
3468 static struct vmcs *alloc_vmcs(void) in alloc_vmcs()
3475 loaded_vmcs->vmcs = alloc_vmcs(); in alloc_loaded_vmcs()
3476 if (!loaded_vmcs->vmcs) in alloc_loaded_vmcs()
3544 struct vmcs *vmcs; in alloc_kvm_area() local
3546 vmcs = alloc_vmcs_cpu(cpu); in alloc_kvm_area()
3547 if (!vmcs) { in alloc_kvm_area()
3552 per_cpu(vmxarea, cpu) = vmcs; in alloc_kvm_area()
6845 struct vmcs *shadow_vmcs; in handle_vmon()
7151 struct vmcs *shadow_vmcs = vmx->nested.current_shadow_vmcs; in copy_shadow_to_vmcs12()
7182 vmcs_load(vmx->loaded_vmcs->vmcs); in copy_shadow_to_vmcs12()
7200 struct vmcs *shadow_vmcs = vmx->nested.current_shadow_vmcs; in copy_vmcs12_to_shadow()
7230 vmcs_load(vmx->loaded_vmcs->vmcs); in copy_vmcs12_to_shadow()