Partition Creation and Initialization
Callers and the hypervisor perform the following sequence of steps to create partitions:
-
The caller calls the HvCreatePartition function to create a child partition. HvCreatePartition allocates a new child partition using the minimal amount of memory from the parent partition's memory pool. The hypervisor uses this memory to create the basis for a partition that can subsequently be provisioned and initialized. As part of creation, the hypervisor assigns a partition identifier to the new partition. This identifier is used to identify the partition during all subsequent steps.
-
The caller calls the HvDepositMemory function to add memory to the newly-created partition's memory pool.
-
The caller calls the HvInitializePartition function to initialize the partition. After the partition is successfully initialized, the partition enters the active state, and additional operations can be performed on the partition. For more information about partition state, see Partition State.
- The caller calls functions of the hypercall interface to add additional resources to the partition. For example, the caller can call:
- The HvCreateVp function to allocate one or more virtual processors
- The HvMapGpaPages function to map memory to the partition's GPA space
- The HvSetPartitionProperty function with the HvPartitionPropertySchedulingControl property to define scheduling policies
Send comments about this topic to Microsoft
Build date: 11/16/2013