Skip to contentSkip to conversation

tools/libxc: arm: Add missing save ops

RFC PATCH In review Chenxiao Zhao 1 participant 1 message Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/4 tools/libxc: arm: Add missing save ops

Add arm_check_vm_state function, .check_vm_state can not be NULL in arch specific ops.

tools/libxc/xc_sr_save_arm.c +7 -0
index 1442679..611f99a 100644
@@ -161,6 +161,12 @@ static int arm_cleanup(struct xc_sr_context *ctx)
     return 0;
 }
 
+static int arm_check_vm_state(struct xc_sr_context *ctx)
+{
+       /* no-op */
+       return 0;
+}
+
 struct xc_sr_save_ops save_ops_arm =
 {
     .pfn_to_gfn          = arm_pfn_to_gfn,
@@ -169,6 +175,7 @@ struct xc_sr_save_ops save_ops_arm =
     .start_of_stream     = arm_start_of_stream,
     .start_of_checkpoint = arm_start_of_checkpoint,
     .end_of_checkpoint   = arm_end_of_checkpoint,
+    .check_vm_state      = arm_check_vm_state,
     .cleanup             = arm_cleanup,
 };
 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel