HomeFreeBSD

xen/balloon: fix accounting of current memory pages on PVH

Description

xen/balloon: fix accounting of current memory pages on PVH

Using realmem on PVH is not realiable, since in this case the realmem value
is computed from Maxmem, which contains the higher memory address found. Use
HYPERVISOR_start_info->nr_pages instead, which is set by the hypervisor and
contains the exact number of memory pages assigned to the domain.

Sponsored by: Citrix Systems R&D

Details

Provenance
roygerAuthored on
Parents
rS272319: xen: add xenstored user-space device
Branches
Unknown
Tags
Unknown

Event Timeline