Lines Matching refs:arch_svm
56 struct arch_svm_struct *arch_svm = &v->arch.hvm_svm; in construct_vmcb() local
57 struct vmcb_struct *vmcb = arch_svm->vmcb; in construct_vmcb()
88 arch_svm->msrpm = alloc_xenheap_pages(get_order_from_bytes(MSRPM_SIZE), 0); in construct_vmcb()
89 if ( arch_svm->msrpm == NULL ) in construct_vmcb()
91 memset(arch_svm->msrpm, 0xff, MSRPM_SIZE); in construct_vmcb()
106 vmcb->_msrpm_base_pa = (u64)virt_to_maddr(arch_svm->msrpm); in construct_vmcb()
223 struct arch_svm_struct *arch_svm = &v->arch.hvm_svm; in svm_create_vmcb() local
233 arch_svm->vmcb = nv->nv_n1vmcx; in svm_create_vmcb()
239 arch_svm->vmcb = NULL; in svm_create_vmcb()
243 arch_svm->vmcb_pa = nv->nv_n1vmcx_pa = virt_to_maddr(arch_svm->vmcb); in svm_create_vmcb()
250 struct arch_svm_struct *arch_svm = &v->arch.hvm_svm; in svm_destroy_vmcb() local
255 if ( arch_svm->msrpm != NULL ) in svm_destroy_vmcb()
258 arch_svm->msrpm, get_order_from_bytes(MSRPM_SIZE)); in svm_destroy_vmcb()
259 arch_svm->msrpm = NULL; in svm_destroy_vmcb()
264 arch_svm->vmcb = NULL; in svm_destroy_vmcb()