Home
last modified time | relevance | path

Searched refs:shadow_vmcs (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/kvm/lib/x86/
H A Dvmx.c104 vmx->shadow_vmcs = (void *)vm_alloc_page(vm); in vcpu_alloc_vmx()
105 vmx->shadow_vmcs_hva = addr_gva2hva(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx()
106 vmx->shadow_vmcs_gpa = addr_gva2gpa(vm, (uintptr_t)vmx->shadow_vmcs); in vcpu_alloc_vmx()
183 *(u32 *)(vmx->shadow_vmcs) = vmcs_revision() | 0x80000000ul; in load_vmcs()
/linux/arch/x86/kvm/vmx/
H A Dnested.c340 struct vmcs *shadow_vmcs; in free_nested() local
363 shadow_vmcs = vmx->vmcs01.shadow_vmcs; in free_nested()
364 vmcs_clear(shadow_vmcs); in free_nested()
365 vmx->vmcs01.shadow_vmcs = NULL; in free_nested()
366 free_vmcs(shadow_vmcs); in free_nested()
1695 struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs; in copy_shadow_to_vmcs12() local
1701 if (WARN_ON(!shadow_vmcs)) in copy_shadow_to_vmcs12()
1706 vmcs_load(shadow_vmcs); in copy_shadow_to_vmcs12()
1714 vmcs_clear(shadow_vmcs); in copy_shadow_to_vmcs12()
1730 struct vmcs *shadow_vmcs = vmx->vmcs01.shadow_vmcs; in copy_vmcs12_to_shadow() local
[all …]
H A Dvmx.c808 if (v->shadow_vmcs) in vmx_emergency_disable_virtualization_cpu()
809 vmcs_clear(v->shadow_vmcs); in vmx_emergency_disable_virtualization_cpu()
824 if (loaded_vmcs->shadow_vmcs && loaded_vmcs->launched) in __loaded_vmcs_clear()
825 vmcs_clear(loaded_vmcs->shadow_vmcs); in __loaded_vmcs_clear()
3061 vmcs->hdr.shadow_vmcs = 1; in alloc_vmcs_cpu()
3082 WARN_ON(loaded_vmcs->shadow_vmcs != NULL); in free_loaded_vmcs()
3093 loaded_vmcs->shadow_vmcs = NULL; in alloc_loaded_vmcs()
/linux/tools/testing/selftests/kvm/include/x86/
H A Dvmx.h510 void *shadow_vmcs;
513 void *shadow_vmcs; global() member
/linux/Documentation/virt/kvm/x86/
H A Dnested-vmx.rst81 struct shadow_vmcs is ever changed.