Lines Matching refs:restore
41 pfn_types = realloc(ctx->x86.pv.restore.pfn_types, pfn_typesz); in expand_p2m()
47 ctx->x86.pv.restore.pfn_types = pfn_types; in expand_p2m()
62 ctx->restore.ops.set_gfn(ctx, i, INVALID_MFN); in expand_p2m()
63 ctx->restore.ops.set_page_type(ctx, i, 0); in expand_p2m()
84 if ( (ctx->x86.pv.restore.pfn_types[i] & in pin_pagetables()
88 switch ( (ctx->x86.pv.restore.pfn_types[i] & in pin_pagetables()
149 if ( ctx->x86.pv.restore.pfn_types[pfn] != XEN_DOMCTL_PFINFO_NOTAB ) in process_start_info()
152 (ctx->x86.pv.restore.pfn_types[pfn] >> in process_start_info()
190 ctx->restore.xenstore_gfn = mfn; in process_start_info()
193 ctx->restore.xenstore_evtchn, ctx->x86.pv.width); in process_start_info()
211 ctx->restore.console_gfn = mfn; in process_start_info()
214 ctx->restore.console_evtchn, ctx->x86.pv.width); in process_start_info()
239 vcpu_guest_context_any_t *vcpu = ctx->x86.pv.restore.vcpus[vcpuid].basic.ptr; in process_vcpu_basic()
277 if ( (ctx->x86.pv.restore.pfn_types[pfn] != XEN_DOMCTL_PFINFO_NOTAB) ) in process_vcpu_basic()
280 (ctx->x86.pv.restore.pfn_types[pfn] >> in process_vcpu_basic()
304 if ( (ctx->x86.pv.restore.pfn_types[pfn] & in process_vcpu_basic()
309 (ctx->x86.pv.restore.pfn_types[pfn] >> in process_vcpu_basic()
336 if ( (ctx->x86.pv.restore.pfn_types[pfn] & in process_vcpu_basic()
341 (ctx->x86.pv.restore.pfn_types[pfn] >> in process_vcpu_basic()
378 &ctx->x86.pv.restore.vcpus[vcpuid]; in process_vcpu_extended()
402 &ctx->x86.pv.restore.vcpus[vcpuid]; in process_vcpu_xsave()
440 &ctx->x86.pv.restore.vcpus[vcpuid]; in process_vcpu_msrs()
480 for ( i = 0; i < ctx->x86.pv.restore.nr_vcpus; ++i ) in update_vcpu_context()
482 vcpu = &ctx->x86.pv.restore.vcpus[i]; in update_vcpu_context()
544 if ( (ctx->x86.pv.restore.pfn_types[pfn] != XEN_DOMCTL_PFINFO_NOTAB) ) in update_guest_p2m()
547 (ctx->x86.pv.restore.pfn_types[pfn] >> in update_guest_p2m()
607 if ( ctx->x86.pv.restore.seen_pv_info ) in handle_x86_pv_info()
666 ctx->x86.pv.restore.seen_pv_info = true; in handle_x86_pv_info()
683 if ( ctx->restore.format_version < 3 && !ctx->restore.seen_static_data_end ) in handle_x86_pv_p2m_frames()
693 if ( !ctx->restore.seen_static_data_end ) in handle_x86_pv_p2m_frames()
699 if ( !ctx->x86.pv.restore.seen_pv_info ) in handle_x86_pv_p2m_frames()
808 if ( vhdr->vcpu_id >= ctx->x86.pv.restore.nr_vcpus ) in handle_x86_pv_vcpu_blob()
811 rec_name, vhdr->vcpu_id, ctx->x86.pv.restore.nr_vcpus - 1); in handle_x86_pv_vcpu_blob()
815 vcpu = &ctx->x86.pv.restore.vcpus[vhdr->vcpu_id]; in handle_x86_pv_vcpu_blob()
888 if ( !ctx->x86.pv.restore.seen_pv_info ) in handle_shared_info()
945 ctx->x86.pv.restore.pfn_types[pfn] = type; in x86_pv_set_page_type()
1045 if ( ctx->restore.guest_type != DHDR_TYPE_X86_PV ) in x86_pv_setup()
1048 dhdr_type_to_str(ctx->restore.guest_type)); in x86_pv_setup()
1052 if ( ctx->restore.guest_page_size != PAGE_SIZE ) in x86_pv_setup()
1055 ctx->restore.guest_page_size); in x86_pv_setup()
1063 ctx->x86.pv.restore.nr_vcpus = ctx->dominfo.max_vcpu_id + 1; in x86_pv_setup()
1064 ctx->x86.pv.restore.vcpus = calloc(sizeof(struct xc_sr_x86_pv_restore_vcpu), in x86_pv_setup()
1065 ctx->x86.pv.restore.nr_vcpus); in x86_pv_setup()
1066 if ( !ctx->x86.pv.restore.vcpus ) in x86_pv_setup()
1138 ctx->restore.console_gfn, in x86_pv_stream_complete()
1139 ctx->restore.xenstore_gfn, in x86_pv_stream_complete()
1140 ctx->restore.console_domid, in x86_pv_stream_complete()
1141 ctx->restore.xenstore_domid); in x86_pv_stream_complete()
1159 if ( ctx->x86.pv.restore.vcpus ) in x86_pv_cleanup()
1163 for ( i = 0; i < ctx->x86.pv.restore.nr_vcpus; ++i ) in x86_pv_cleanup()
1166 &ctx->x86.pv.restore.vcpus[i]; in x86_pv_cleanup()
1174 free(ctx->x86.pv.restore.vcpus); in x86_pv_cleanup()
1177 free(ctx->x86.pv.restore.pfn_types); in x86_pv_cleanup()
1182 free(ctx->x86.restore.cpuid.ptr); in x86_pv_cleanup()
1183 free(ctx->x86.restore.msr.ptr); in x86_pv_cleanup()