Lines Matching refs:nv
222 struct nestedvcpu *nv = &vcpu_nestedhvm(v); in svm_create_vmcb() local
226 if ( (nv->nv_n1vmcx == NULL) && in svm_create_vmcb()
227 (nv->nv_n1vmcx = alloc_vmcb()) == NULL ) in svm_create_vmcb()
233 arch_svm->vmcb = nv->nv_n1vmcx; in svm_create_vmcb()
237 free_vmcb(nv->nv_n1vmcx); in svm_create_vmcb()
238 nv->nv_n1vmcx = NULL; in svm_create_vmcb()
243 arch_svm->vmcb_pa = nv->nv_n1vmcx_pa = virt_to_maddr(arch_svm->vmcb); in svm_create_vmcb()
249 struct nestedvcpu *nv = &vcpu_nestedhvm(v); in svm_destroy_vmcb() local
252 if ( nv->nv_n1vmcx != NULL ) in svm_destroy_vmcb()
253 free_vmcb(nv->nv_n1vmcx); in svm_destroy_vmcb()
262 nv->nv_n1vmcx = NULL; in svm_destroy_vmcb()
263 nv->nv_n1vmcx_pa = INVALID_PADDR; in svm_destroy_vmcb()