Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
HvCallGetMemoryBalance retrieves the current memory allocation information for a partition. This hypercall provides details about the partition's memory usage in the hypervisor.
Interface
HV_STATUS
HvCallGetMemoryBalance(
_In_ HV_PARTITION_ID PartitionId,
_In_ HV_PROXIMITY_DOMAIN_INFO ProximityDomainInfo,
_Out_ UINT64* PagesAvailable;
_Out_ UINT64* PagesInUse;
);
Call Code
0x004A (Simple)
Input Parameters
| Name | Offset | Size | Information Provided |
|---|---|---|---|
| PartitionId | 0 | 8 | Target partition identifier. |
| ProximityDomainInfo | 8 | 8 | NUMA domain hint; supply zeroed structure if domain not used. |
Output Parameters
| Name | Offset | Size | Information Provided |
|---|---|---|---|
| PagesAvailable | 0 | 8 | Number of pages available for allocation |
| PagesInUse | 0 | 8 | Number of pages in use by the hypervisor |