Recommended Restore Process

A parent partition should use the following procedure to restore a partition:

  1. Call the HvRestorePartitionState hypercall function and supply the saved or summary data and appropriate flags to determine whether the partition state can be restored.

  2. Create a new partition and populate the partition with resources, such as GPA mappings and so on. For more information about creating a partition, see Partition Creation and Initialization. For more information about resource management, see Hypervisor Resource Management. For more information about GPA mappings, see Guest Physical Address Spaces.

  3. Call the HvInitializePartition hypercall function to initialize the new partition. For more information about initializing a partition, see Partition Creation and Initialization.

  4. Call the HvCreateVp hypercall function to create new virtual processors. The number and identifiers of the virtual processors should match those of the partition that was previously saved.

  5. Call the HvCreatePort and HvConnectPort hypercall functions to recreate all child ports and reestablish all connections with the new parent.

  6. Call the HvRestorePartitionState hypercall function repeatedly and supply the saved state stream until the parent partition indicates that the child partition's state is completely restored. For more information about repeating calls to HvRestorePartitionState, see Partition Save and Restore Data Types.

  7. Resume execution by clearing the explicit suspend state of each of the virtual processors. For more information about virtual processor states, see Virtual Processor States.

 

 

Send comments about this topic to Microsoft

Build date: 11/16/2013

Show:
© 2014 Microsoft. All rights reserved.