Lines Matching refs:vmptr
249 static bool nested_evmcs_handle_vmclear(struct kvm_vcpu *vcpu, gpa_t vmptr) in nested_evmcs_handle_vmclear() argument
267 if (nested_vmx_evmcs(vmx) && vmptr == vmx->nested.hv_evmcs_vmptr) in nested_evmcs_handle_vmclear()
5329 gpa_t vmptr; in handle_vmxon() local
5391 if (nested_vmx_get_vmptr(vcpu, &vmptr, &ret)) in handle_vmxon()
5402 if (!page_address_valid(vcpu, vmptr)) in handle_vmxon()
5405 if (kvm_read_guest(vcpu->kvm, vmptr, &revision, sizeof(revision)) || in handle_vmxon()
5409 vmx->nested.vmxon_ptr = vmptr; in handle_vmxon()
5463 gpa_t vmptr; in handle_vmclear() local
5469 if (nested_vmx_get_vmptr(vcpu, &vmptr, &r)) in handle_vmclear()
5472 if (!page_address_valid(vcpu, vmptr)) in handle_vmclear()
5475 if (vmptr == vmx->nested.vmxon_ptr) in handle_vmclear()
5478 if (likely(!nested_evmcs_handle_vmclear(vcpu, vmptr))) { in handle_vmclear()
5479 if (vmptr == vmx->nested.current_vmptr) in handle_vmclear()
5492 vmptr + offsetof(struct vmcs12, in handle_vmclear()
5726 static void set_current_vmptr(struct vcpu_vmx *vmx, gpa_t vmptr) in set_current_vmptr() argument
5728 vmx->nested.current_vmptr = vmptr; in set_current_vmptr()
5743 gpa_t vmptr; in handle_vmptrld() local
5749 if (nested_vmx_get_vmptr(vcpu, &vmptr, &r)) in handle_vmptrld()
5752 if (!page_address_valid(vcpu, vmptr)) in handle_vmptrld()
5755 if (vmptr == vmx->nested.vmxon_ptr) in handle_vmptrld()
5762 if (vmx->nested.current_vmptr != vmptr) { in handle_vmptrld()
5766 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, vmptr, VMCS12_SIZE)) { in handle_vmptrld()
5803 set_current_vmptr(vmx, vmptr); in handle_vmptrld()